CvGlobals::getNumPromotionInfos()
- Defined in
- CvGlobals.cpp, line 3486
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_getNumPromotionInfos
Hooks
static bool BeforeCvGlobals_getNumPromotionInfos(CvGlobals* self, int& result);static void AfterCvGlobals_getNumPromotionInfos(CvGlobals* self, int& result);static int ReplaceCvGlobals_getNumPromotionInfos(int (*original)(CvGlobals*), CvGlobals* self);CivRegisterBefore<CivHooks::CvGlobals_getNumPromotionInfos>(host, &BeforeCvGlobals_getNumPromotionInfos);CivRegisterAfter<CivHooks::CvGlobals_getNumPromotionInfos>(host, &AfterCvGlobals_getNumPromotionInfos);CivRegisterReplace<CivHooks::CvGlobals_getNumPromotionInfos>(host, &ReplaceCvGlobals_getNumPromotionInfos);
Code
3486int CvGlobals::getNumPromotionInfos()3487{3488 return (int)m_pPromotions->GetPromotionEntries().size();3489}
Calls
- CvPromotionXMLEntries::GetPromotionEntries()
std::vector::size
Called by
32 functions in 14 files
- CvBarbarians::GetRandomBarbarianUnitType(CvPlot *, UnitAITypes)
- CvCity::addProductionExperience(CvUnit *, bool)
- CvCity::reset(int, PlayerTypes, int, int, bool)
- CvDllGameContext::GetNumPromotionInfos()
- CvDllDatabaseUtility::SetGlobalActionInfo()
- CvDllDatabaseUtility::ValidatePrefetchProcess()
- EconomicAIHelpers::IsTestStrategy_ReallyNeedReconSea(CvPlayer *)
- CvGame::GetCompetitiveSpawnUnitType(PlayerTypes, bool, bool, bool)
- CvGame::GetRandomSpawnUnitType(PlayerTypes, bool, bool)
- CvGame::GetRandomUniqueUnitType(bool, bool, bool, bool)
- CvGlobals::getPromotionInfo(PromotionTypes)
- CvPlayer::processPolicies(PolicyTypes, int)
- CvPlayer::reset(PlayerTypes, bool)
- CvPlayer::setCombatExperienceTimes100(int, CvUnit *)
- CvPlayer::setNavalCombatExperienceTimes100(int, CvUnit *)
- CvPlot::updateSeeFromSight(bool)
- CvUnitPromotions::GetAllowFeaturePassable(FeatureTypes) const
- CvUnitPromotions::GetAllowTerrainPassable(TerrainTypes) const
- CvUnitPromotions::GetUnitClassAttackMod(UnitClassTypes) const
- CvUnitPromotions::GetUnitClassDefenseMod(UnitClassTypes) const
- CvUnitPromotions::HasPromotion(PromotionTypes) const
- CvUnitPromotions::SetPromotion(PromotionTypes, bool)
- CvTeam::processTech(TechTypes, int)
- CvUnit::AI_promote()
- CvUnit::canAcquirePromotionAny() const
- CvUnit::changeExperienceTimes100(int, int, bool, bool, bool)
- CvUnit::convert(CvUnit *, bool)
- CvUnit::initWithNameOffset(int, UnitTypes, int, UnitAITypes, PlayerTypes, int, int, DirectionTypes, bool, bool, int, int)
- CvUnitEntry::DoUpdatePower()
- CvUnitEntry::GetCargoSpace() const
- InitTypeDesc()
- SetupUnit(const CvWorldBuilderMap::Unit &, int, int)