CvUnitEntry::GetRangedCombat() const
- Defined in
- CvUnitClasses.cpp, line 741
- Class
- CvUnitEntry
- Hook name
CivHooks::CvUnitEntry_GetRangedCombat
Hooks
static bool BeforeCvUnitEntry_GetRangedCombat(const CvUnitEntry* self, int& result);static void AfterCvUnitEntry_GetRangedCombat(const CvUnitEntry* self, int& result);static int ReplaceCvUnitEntry_GetRangedCombat(int (*original)(const CvUnitEntry*), const CvUnitEntry* self);CivRegisterBefore<CivHooks::CvUnitEntry_GetRangedCombat>(host, &BeforeCvUnitEntry_GetRangedCombat);CivRegisterAfter<CivHooks::CvUnitEntry_GetRangedCombat>(host, &AfterCvUnitEntry_GetRangedCombat);CivRegisterReplace<CivHooks::CvUnitEntry_GetRangedCombat>(host, &ReplaceCvUnitEntry_GetRangedCombat);
Code
740/// Bombard combat value741int CvUnitEntry::GetRangedCombat() const742{743 return m_iRangedCombat;744}
Called by
- CvAdvisorCounsel::BuildCounselList(PlayerTypes)
- CvGame::GetCompetitiveSpawnUnitType(PlayerTypes, bool, bool, bool)
- CvGame::GetRandomSpawnUnitType(PlayerTypes, bool, bool)
- CvGame::GetRandomUniqueUnitType(bool, bool, bool, bool)
- CvPlayer::DoUnresearchedTechBonusFromKill(CvUnit *, UnitTypes, int, int, int &)
- CvPlayer::DoYieldBonusFromKill(YieldTypes, CvUnit *, CvUnit *, UnitTypes, int, int, bool, int &)
- CvUnit::GetBaseRangedCombatStrength() const
- CvUnit::GetPower() const
- CvUnit::GetRange() const
- CvUnit::read(FDataStream &)
- CvUnit::reset(int, UnitTypes, PlayerTypes, bool)
- CvUnitEntry::DoUpdatePower()