CvCombatInfo::getUpdateGlobal(BattleUnitTypes) const
- Defined in
- CvStructs.cpp, line 458
- Class
- CvCombatInfo
- Hook name
CivHooks::CvCombatInfo_getUpdateGlobal
Hooks
static bool BeforeCvCombatInfo_getUpdateGlobal(const CvCombatInfo* self, BattleUnitTypes unitType, bool& result);static void AfterCvCombatInfo_getUpdateGlobal(const CvCombatInfo* self, BattleUnitTypes unitType, bool& result);static bool ReplaceCvCombatInfo_getUpdateGlobal(bool (*original)(const CvCombatInfo*, BattleUnitTypes), const CvCombatInfo* self, BattleUnitTypes unitType);CivRegisterBefore<CivHooks::CvCombatInfo_getUpdateGlobal>(host, &BeforeCvCombatInfo_getUpdateGlobal);CivRegisterAfter<CivHooks::CvCombatInfo_getUpdateGlobal>(host, &AfterCvCombatInfo_getUpdateGlobal);CivRegisterReplace<CivHooks::CvCombatInfo_getUpdateGlobal>(host, &ReplaceCvCombatInfo_getUpdateGlobal);
Code
458bool CvCombatInfo::getUpdateGlobal(BattleUnitTypes unitType) const459{460 checkBattleUnitType(unitType);461 return m_bUpdateGlobal[unitType];462}
Calls
Called by
- CvUnitCombat::ResolveAirSweep(const CvCombatInfo &, uint)
- CvUnitCombat::ResolveAirUnitVsCombat(const CvCombatInfo &, uint)
- CvUnitCombat::ResolveCityMeleeCombat(const CvCombatInfo &, uint)
- CvUnitCombat::ResolveMeleeCombat(const CvCombatInfo &, uint)
- CvUnitCombat::ResolveRangedCityVsUnitCombat(const CvCombatInfo &, uint)
- CvUnitCombat::ResolveRangedUnitVsCombat(const CvCombatInfo &, uint)