Bazaar developer reference

CvUnit::setMadeInterception(bool)

Defined in
CvUnit.cpp, line 19486
Class
CvUnit
Hook name
CivHooks::CvUnit_setMadeInterception

Hooks

static bool BeforeCvUnit_setMadeInterception(CvUnit* self, bool bNewValue);static void AfterCvUnit_setMadeInterception(CvUnit* self, bool bNewValue);static void ReplaceCvUnit_setMadeInterception(void (*original)(CvUnit*, bool), CvUnit* self, bool bNewValue);CivRegisterBefore<CivHooks::CvUnit_setMadeInterception>(host, &BeforeCvUnit_setMadeInterception);CivRegisterAfter<CivHooks::CvUnit_setMadeInterception>(host, &AfterCvUnit_setMadeInterception);CivRegisterReplace<CivHooks::CvUnit_setMadeInterception>(host, &ReplaceCvUnit_setMadeInterception);

Code

19486void CvUnit::setMadeInterception(bool bNewValue)19487{19488	VALIDATE_OBJECT19489	if(bNewValue)19490	{19491		m_iMadeInterceptionCount++;19492	}19493	else19494	{19495		m_iMadeInterceptionCount = 0;19496	}19497}

Calls

Called by