Bazaar developer reference

CvUnit::ChangeGreatGeneralReceivesMovementCount(int)

Defined in
CvUnit.cpp, line 19024
Class
CvUnit
Hook name
CivHooks::CvUnit_ChangeGreatGeneralReceivesMovementCount

Hooks

static bool BeforeCvUnit_ChangeGreatGeneralReceivesMovementCount(CvUnit* self, int iChange);static void AfterCvUnit_ChangeGreatGeneralReceivesMovementCount(CvUnit* self, int iChange);static void ReplaceCvUnit_ChangeGreatGeneralReceivesMovementCount(void (*original)(CvUnit*, int), CvUnit* self, int iChange);CivRegisterBefore<CivHooks::CvUnit_ChangeGreatGeneralReceivesMovementCount>(host, &BeforeCvUnit_ChangeGreatGeneralReceivesMovementCount);CivRegisterAfter<CivHooks::CvUnit_ChangeGreatGeneralReceivesMovementCount>(host, &AfterCvUnit_ChangeGreatGeneralReceivesMovementCount);CivRegisterReplace<CivHooks::CvUnit_ChangeGreatGeneralReceivesMovementCount>(host, &ReplaceCvUnit_ChangeGreatGeneralReceivesMovementCount);

Code

19024void CvUnit::ChangeGreatGeneralReceivesMovementCount(int iChange)19025{19026	m_iGreatGeneralReceivesMovementCount += iChange;19027}

Called by