Bazaar developer reference

CvUnit::changeCombatTimer(int)

Defined in
CvUnit.cpp, line 17474
Class
CvUnit
Hook name
CivHooks::CvUnit_changeCombatTimer

Hooks

static bool BeforeCvUnit_changeCombatTimer(CvUnit* self, int iChange);static void AfterCvUnit_changeCombatTimer(CvUnit* self, int iChange);static void ReplaceCvUnit_changeCombatTimer(void (*original)(CvUnit*, int), CvUnit* self, int iChange);CivRegisterBefore<CivHooks::CvUnit_changeCombatTimer>(host, &BeforeCvUnit_changeCombatTimer);CivRegisterAfter<CivHooks::CvUnit_changeCombatTimer>(host, &AfterCvUnit_changeCombatTimer);CivRegisterReplace<CivHooks::CvUnit_changeCombatTimer>(host, &ReplaceCvUnit_changeCombatTimer);

Code

17474void CvUnit::changeCombatTimer(int iChange)17475{17476	VALIDATE_OBJECT17477	setCombatTimer(getCombatTimer() + iChange);17478}

Calls