Bazaar developer reference

CvUnit::ChangeNumInterceptions(int)

Defined in
CvUnit.cpp, line 19465
Class
CvUnit
Hook name
CivHooks::CvUnit_ChangeNumInterceptions

Hooks

static bool BeforeCvUnit_ChangeNumInterceptions(CvUnit* self, int iChange);static void AfterCvUnit_ChangeNumInterceptions(CvUnit* self, int iChange);static void ReplaceCvUnit_ChangeNumInterceptions(void (*original)(CvUnit*, int), CvUnit* self, int iChange);CivRegisterBefore<CivHooks::CvUnit_ChangeNumInterceptions>(host, &BeforeCvUnit_ChangeNumInterceptions);CivRegisterAfter<CivHooks::CvUnit_ChangeNumInterceptions>(host, &AfterCvUnit_ChangeNumInterceptions);CivRegisterReplace<CivHooks::CvUnit_ChangeNumInterceptions>(host, &ReplaceCvUnit_ChangeNumInterceptions);

Code

19465void CvUnit::ChangeNumInterceptions(int iChange)19466{19467	VALIDATE_OBJECT19468	if(iChange != 0)19469		m_iNumInterceptions += iChange;19470}

Calls

Called by