CvCombatInfo::setDamageInflicted(BattleUnitTypes, int)
- Defined in
- CvStructs.cpp, line 396
- Class
- CvCombatInfo
- Hook name
CivHooks::CvCombatInfo_setDamageInflicted
Hooks
static bool BeforeCvCombatInfo_setDamageInflicted(CvCombatInfo* self, BattleUnitTypes unitType, int iDamage);static void AfterCvCombatInfo_setDamageInflicted(CvCombatInfo* self, BattleUnitTypes unitType, int iDamage);static void ReplaceCvCombatInfo_setDamageInflicted(void (*original)(CvCombatInfo*, BattleUnitTypes, int), CvCombatInfo* self, BattleUnitTypes unitType, int iDamage);CivRegisterBefore<CivHooks::CvCombatInfo_setDamageInflicted>(host, &BeforeCvCombatInfo_setDamageInflicted);CivRegisterAfter<CivHooks::CvCombatInfo_setDamageInflicted>(host, &AfterCvCombatInfo_setDamageInflicted);CivRegisterReplace<CivHooks::CvCombatInfo_setDamageInflicted>(host, &ReplaceCvCombatInfo_setDamageInflicted);
Code
396void CvCombatInfo::setDamageInflicted(BattleUnitTypes unitType, int iDamage)397{398 checkBattleUnitType(unitType);399 m_iDamageInflicted[unitType] = iDamage;400}
Calls
Called by
- CvUnitCombat::GenerateAirCombatInfo(CvUnit &, CvUnit *, CvPlot &, CvCombatInfo *)
- CvUnitCombat::GenerateAirSweepCombatInfo(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 *)