CvGlobals::GetGameUnits() const
- Defined in
- CvGlobals.cpp, line 2994
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_GetGameUnits
Hooks
static bool BeforeCvGlobals_GetGameUnits(const CvGlobals* self, CvUnitXMLEntries*& result);static void AfterCvGlobals_GetGameUnits(const CvGlobals* self, CvUnitXMLEntries*& result);static CvUnitXMLEntries* ReplaceCvGlobals_GetGameUnits(CvUnitXMLEntries* (*original)(const CvGlobals*), const CvGlobals* self);CivRegisterBefore<CivHooks::CvGlobals_GetGameUnits>(host, &BeforeCvGlobals_GetGameUnits);CivRegisterAfter<CivHooks::CvGlobals_GetGameUnits>(host, &AfterCvGlobals_GetGameUnits);CivRegisterReplace<CivHooks::CvGlobals_GetGameUnits>(host, &ReplaceCvGlobals_GetGameUnits);
Code
2994CvUnitXMLEntries* CvGlobals::GetGameUnits() const2995{2996 return m_pUnits;2997}
Called by
- CvAdvisorRecommender::UpdateCityRecommendations(CvCity *)
- CvCity::processBuilding(BuildingTypes, int, bool, bool, bool)
- CvCitySpecializationAI::CanBuildSpaceshipParts()
- CvCityStrategyAI::ChooseProduction(bool, BuildingTypes, UnitTypes)
- CvCityStrategyAI::Init(CvAICityStrategies *, CvCity *, bool)
- CvCityStrategyAI::LogCityProduction(CvCityBuildable, bool)
- CvCityStrategyAI::LogPossibleBuilds()
- CvMilitaryAI::FindBestUnitToScrap(bool, bool, int &)
- CvPlayer::initFreeUnits(CvGameInitialItemsOverrides &)
- CvTeam::processTech(TechTypes, int)
- CvTradeAI::PrioritizeTradeRoutes(TradeConnectionList &)
- CvUnit::IsHigherTechThan(UnitTypes) const
- CvUnit::canHurry(const CvPlot *, bool) const
- CvUnitProductionAI::LogPossibleBuilds(UnitAITypes)
- CvUnitProductionAI::RecommendUnit(UnitAITypes)