Bazaar developer reference

CvDllCombatInfo::GetFinalDamage(BattleUnitTypes) const

Defined in
CvDllCombatInfo.cpp, line 117
Class
CvDllCombatInfo
Hook name
CivHooks::CvDllCombatInfo_GetFinalDamage

Hooks

static bool BeforeCvDllCombatInfo_GetFinalDamage(const CvDllCombatInfo* self, BattleUnitTypes unitType, int& result);static void AfterCvDllCombatInfo_GetFinalDamage(const CvDllCombatInfo* self, BattleUnitTypes unitType, int& result);static int ReplaceCvDllCombatInfo_GetFinalDamage(int (*original)(const CvDllCombatInfo*, BattleUnitTypes), const CvDllCombatInfo* self, BattleUnitTypes unitType);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllCombatInfo_GetFinalDamage::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllCombatInfo_GetFinalDamage);host->RegisterHook(host->pluginIndex, CivHooks::CvDllCombatInfo_GetFinalDamage::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllCombatInfo_GetFinalDamage);host->RegisterHook(host->pluginIndex, CivHooks::CvDllCombatInfo_GetFinalDamage::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllCombatInfo_GetFinalDamage);

Code

117int CvDllCombatInfo::GetFinalDamage(BattleUnitTypes unitType) const118{119	return m_pCombatInfo->getFinalDamage(unitType);120}

Calls