CvGlobals::getNumUnitInfos()
- Defined in
- CvGlobals.cpp, line 2974
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_getNumUnitInfos
Hooks
static bool BeforeCvGlobals_getNumUnitInfos(CvGlobals* self, int& result);static void AfterCvGlobals_getNumUnitInfos(CvGlobals* self, int& result);static int ReplaceCvGlobals_getNumUnitInfos(int (*original)(CvGlobals*), CvGlobals* self);CivRegisterBefore<CivHooks::CvGlobals_getNumUnitInfos>(host, &BeforeCvGlobals_getNumUnitInfos);CivRegisterAfter<CivHooks::CvGlobals_getNumUnitInfos>(host, &AfterCvGlobals_getNumUnitInfos);CivRegisterReplace<CivHooks::CvGlobals_getNumUnitInfos>(host, &ReplaceCvGlobals_getNumUnitInfos);
Code
2974int CvGlobals::getNumUnitInfos()2975{2976 return m_pUnits->GetNumUnits();2977}
Calls
Called by
- CvAdvisorCounsel::BuildCounselList(PlayerTypes)
- CvCity::canTrain(UnitCombatTypes) const
- CvCity::doCheckProduction()
- CvCity::doDecay()
- CvCity::processBuilding(BuildingTypes, int, bool, bool, bool)
- CvCity::reset(int, PlayerTypes, int, int, bool)
- CvDllGameContext::GetNumUnitInfos()
- CvDllDatabaseUtility::ValidatePrefetchProcess()
- CvGame::GetCompetitiveSpawnUnitType(PlayerTypes, bool, bool, bool)
- CvGame::GetCsGiftSpawnUnitType(PlayerTypes, bool)
- CvGame::GetRandomSpawnUnitType(PlayerTypes, bool, bool)
- CvGame::GetRandomUniqueUnitType(bool, bool, bool, bool)
- CvGame::Write(FDataStream &) const
- CvGame::canTrainNukes() const
- CvGame::reset(HandicapTypes, bool)
- CvGlobals::getUnitInfo(UnitTypes)
- CvMilitaryAI::GetPowerOfStrongestBuildableUnit(DomainTypes)
- CvMinorCivAI::GetBestGreatPersonForQuest(PlayerTypes)
- CvPlayer::DoSpawnGreatPerson(PlayerTypes, bool)
- CvPlayer::canCreate(ProjectTypes, bool, bool) const
- CvPlayer::setCombatExperienceTimes100(int, CvUnit *)
- CvPlayer::setNavalCombatExperienceTimes100(int, CvUnit *)
- CvPlayer::unitsGoldenAgeReady() const
- CvPromotionEntry::GetCivilianUnitType(int) const
- CvPlayerReligions::CanAffordFaithPurchase(int) const
- CvReligionAI::GetDesiredFaithGreatPerson() const
- UnitArrayHelpers::Read(FDataStream &, int *)
- InitTypeDesc()