Bazaar developer reference

GetPostCombatDelay()

Defined in
CvUnitCombat.cpp, line 31
Hook name
CivHooks::CvUnitCombat_cpp_GetPostCombatDelay

Hooks

static bool BeforeCvUnitCombat_cpp_GetPostCombatDelay(int& result);static void AfterCvUnitCombat_cpp_GetPostCombatDelay(int& result);static int ReplaceCvUnitCombat_cpp_GetPostCombatDelay(int (*original)());CivRegisterBefore<CivHooks::CvUnitCombat_cpp_GetPostCombatDelay>(host, &BeforeCvUnitCombat_cpp_GetPostCombatDelay);CivRegisterAfter<CivHooks::CvUnitCombat_cpp_GetPostCombatDelay>(host, &AfterCvUnitCombat_cpp_GetPostCombatDelay);CivRegisterReplace<CivHooks::CvUnitCombat_cpp_GetPostCombatDelay>(host, &ReplaceCvUnitCombat_cpp_GetPostCombatDelay);

Code

31static int GetPostCombatDelay()32{33	return CvPreGame::quickCombat()?POST_QUICK_COMBAT_DELAY:POST_COMBAT_DELAY;34}

Calls

Called by