Bazaar developer reference

CvUnit::changeNoCaptureCount(int)

Defined in
CvUnit.cpp, line 14630
Class
CvUnit
Hook name
CivHooks::CvUnit_changeNoCaptureCount

Hooks

static bool BeforeCvUnit_changeNoCaptureCount(CvUnit* self, int iValue);static void AfterCvUnit_changeNoCaptureCount(CvUnit* self, int iValue);static void ReplaceCvUnit_changeNoCaptureCount(void (*original)(CvUnit*, int), CvUnit* self, int iValue);CivRegisterBefore<CivHooks::CvUnit_changeNoCaptureCount>(host, &BeforeCvUnit_changeNoCaptureCount);CivRegisterAfter<CivHooks::CvUnit_changeNoCaptureCount>(host, &AfterCvUnit_changeNoCaptureCount);CivRegisterReplace<CivHooks::CvUnit_changeNoCaptureCount>(host, &ReplaceCvUnit_changeNoCaptureCount);

Code

14630void CvUnit::changeNoCaptureCount(int iValue)14631{14632	VALIDATE_OBJECT14633	if(iValue != 0)14634	{14635		m_iNoCaptureCount += iValue;14636	}14637}

Calls

Called by