CvGlobals::getNumUnitCombatClassInfos()
- Defined in
- CvGlobals.cpp, line 3039
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_getNumUnitCombatClassInfos
Hooks
static bool BeforeCvGlobals_getNumUnitCombatClassInfos(CvGlobals* self, int& result);static void AfterCvGlobals_getNumUnitCombatClassInfos(CvGlobals* self, int& result);static int ReplaceCvGlobals_getNumUnitCombatClassInfos(int (*original)(CvGlobals*), CvGlobals* self);CivRegisterBefore<CivHooks::CvGlobals_getNumUnitCombatClassInfos>(host, &BeforeCvGlobals_getNumUnitCombatClassInfos);CivRegisterAfter<CivHooks::CvGlobals_getNumUnitCombatClassInfos>(host, &AfterCvGlobals_getNumUnitCombatClassInfos);CivRegisterReplace<CivHooks::CvGlobals_getNumUnitCombatClassInfos>(host, &ReplaceCvGlobals_getNumUnitCombatClassInfos);
Code
3039int CvGlobals::getNumUnitCombatClassInfos()3040{3041 return (int)m_paUnitCombatClassInfo.size();3042}
Calls
std::vector::size
Called by
- CvCity::processBuilding(BuildingTypes, int, bool, bool, bool)
- CvCity::reset(int, PlayerTypes, int, int, bool)
- CvDllGameContext::GetNumUnitCombatClassInfos()
- CvDllDatabaseUtility::ValidatePrefetchProcess()
- CvPlayer::processPolicies(PolicyTypes, int)
- CvPlayer::reset(PlayerTypes, bool)
- CvPromotionEntry::GetUnitCombatClass(int) const
- CvPromotionEntry::GetUnitCombatModifierPercent(int) const
- CvPlayerTraits::InitPlayerTraits()
- CvPlayerTraits::Read(FDataStream &)
- CvPlayerTraits::Reset()
- CvPlayerTraits::Write(FDataStream &)
- CvTreasury::CalculateUnitCost(int &, int &, int &, int &)
- CvUnit::AI_promotionValue(PromotionTypes)
- CvUnit::reset(int, UnitTypes, PlayerTypes, bool)
- CvUnit::setHasPromotion(PromotionTypes, bool)
- CvUnitEntry::DoUpdatePower()