Bazaar developer reference

CvUnit::ChangeGreatGeneralCount(int)

Defined in
CvUnit.cpp, line 18943
Class
CvUnit
Hook name
CivHooks::CvUnit_ChangeGreatGeneralCount

Hooks

static bool BeforeCvUnit_ChangeGreatGeneralCount(CvUnit* self, int iChange);static void AfterCvUnit_ChangeGreatGeneralCount(CvUnit* self, int iChange);static void ReplaceCvUnit_ChangeGreatGeneralCount(void (*original)(CvUnit*, int), CvUnit* self, int iChange);CivRegisterBefore<CivHooks::CvUnit_ChangeGreatGeneralCount>(host, &BeforeCvUnit_ChangeGreatGeneralCount);CivRegisterAfter<CivHooks::CvUnit_ChangeGreatGeneralCount>(host, &AfterCvUnit_ChangeGreatGeneralCount);CivRegisterReplace<CivHooks::CvUnit_ChangeGreatGeneralCount>(host, &ReplaceCvUnit_ChangeGreatGeneralCount);

Code

18943void CvUnit::ChangeGreatGeneralCount(int iChange)18944{18945	VALIDATE_OBJECT18946	m_iGreatGeneralCount += iChange;18947}

Calls

Called by