Bazaar developer reference

CvCombatInfo::getFearDamageInflicted(BattleUnitTypes) const

Defined in
CvStructs.cpp, line 414
Class
CvCombatInfo
Hook name
CivHooks::CvCombatInfo_getFearDamageInflicted

Hooks

static bool BeforeCvCombatInfo_getFearDamageInflicted(const CvCombatInfo* self, BattleUnitTypes unitType, int& result);static void AfterCvCombatInfo_getFearDamageInflicted(const CvCombatInfo* self, BattleUnitTypes unitType, int& result);static int ReplaceCvCombatInfo_getFearDamageInflicted(int (*original)(const CvCombatInfo*, BattleUnitTypes), const CvCombatInfo* self, BattleUnitTypes unitType);CivRegisterBefore<CivHooks::CvCombatInfo_getFearDamageInflicted>(host, &BeforeCvCombatInfo_getFearDamageInflicted);CivRegisterAfter<CivHooks::CvCombatInfo_getFearDamageInflicted>(host, &AfterCvCombatInfo_getFearDamageInflicted);CivRegisterReplace<CivHooks::CvCombatInfo_getFearDamageInflicted>(host, &ReplaceCvCombatInfo_getFearDamageInflicted);

Code

414int CvCombatInfo::getFearDamageInflicted(BattleUnitTypes unitType) const415{416	checkBattleUnitType(unitType);417	return m_iFearDamageInflicted[unitType];418}

Calls