Bazaar developer reference

CvDllCombatInfo::GetDamageInflicted(BattleUnitTypes) const

Defined in
CvDllCombatInfo.cpp, line 112
Class
CvDllCombatInfo
Hook name
CivHooks::CvDllCombatInfo_GetDamageInflicted

Hooks

static bool BeforeCvDllCombatInfo_GetDamageInflicted(const CvDllCombatInfo* self, BattleUnitTypes unitType, int& result);static void AfterCvDllCombatInfo_GetDamageInflicted(const CvDllCombatInfo* self, BattleUnitTypes unitType, int& result);static int ReplaceCvDllCombatInfo_GetDamageInflicted(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_GetDamageInflicted::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllCombatInfo_GetDamageInflicted);host->RegisterHook(host->pluginIndex, CivHooks::CvDllCombatInfo_GetDamageInflicted::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllCombatInfo_GetDamageInflicted);host->RegisterHook(host->pluginIndex, CivHooks::CvDllCombatInfo_GetDamageInflicted::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllCombatInfo_GetDamageInflicted);

Code

112int CvDllCombatInfo::GetDamageInflicted(BattleUnitTypes unitType) const113{114	return m_pCombatInfo->getDamageInflicted(unitType);115}

Calls