CvCombatInfo::setFearDamageInflicted(BattleUnitTypes, int)
- Defined in
- CvStructs.cpp, line 419
- Class
- CvCombatInfo
- Hook name
CivHooks::CvCombatInfo_setFearDamageInflicted
Hooks
static bool BeforeCvCombatInfo_setFearDamageInflicted(CvCombatInfo* self, BattleUnitTypes unitType, int iDamage);static void AfterCvCombatInfo_setFearDamageInflicted(CvCombatInfo* self, BattleUnitTypes unitType, int iDamage);static void ReplaceCvCombatInfo_setFearDamageInflicted(void (*original)(CvCombatInfo*, BattleUnitTypes, int), CvCombatInfo* self, BattleUnitTypes unitType, int iDamage);CivRegisterBefore<CivHooks::CvCombatInfo_setFearDamageInflicted>(host, &BeforeCvCombatInfo_setFearDamageInflicted);CivRegisterAfter<CivHooks::CvCombatInfo_setFearDamageInflicted>(host, &AfterCvCombatInfo_setFearDamageInflicted);CivRegisterReplace<CivHooks::CvCombatInfo_setFearDamageInflicted>(host, &ReplaceCvCombatInfo_setFearDamageInflicted);
Code
419void CvCombatInfo::setFearDamageInflicted(BattleUnitTypes unitType, int iDamage)420{421 checkBattleUnitType(unitType);422 m_iFearDamageInflicted[unitType] = iDamage;423}
Calls
Called by
- CvUnitCombat::GenerateAirCombatInfo(CvUnit &, CvUnit *, CvPlot &, CvCombatInfo *)
- CvUnitCombat::GenerateMeleeCombatInfo(CvUnit &, CvUnit *, CvPlot &, CvCombatInfo *)
- CvUnitCombat::GenerateNuclearCombatInfo(CvUnit &, CvPlot &, CvCombatInfo *)
- CvUnitCombat::GenerateRangedCombatInfo(CvCity &, CvUnit *, CvPlot &, CvCombatInfo *)
- CvUnitCombat::GenerateRangedCombatInfo(CvUnit &, CvUnit *, CvPlot &, CvCombatInfo *)