CvGlobals::getNumBuildingInfos()
- Defined in
- CvGlobals.cpp, line 3356
- Class
- CvGlobals
- Hook name
CivHooks::CvGlobals_getNumBuildingInfos
Hooks
static bool BeforeCvGlobals_getNumBuildingInfos(CvGlobals* self, int& result);static void AfterCvGlobals_getNumBuildingInfos(CvGlobals* self, int& result);static int ReplaceCvGlobals_getNumBuildingInfos(int (*original)(CvGlobals*), CvGlobals* self);CivRegisterBefore<CivHooks::CvGlobals_getNumBuildingInfos>(host, &BeforeCvGlobals_getNumBuildingInfos);CivRegisterAfter<CivHooks::CvGlobals_getNumBuildingInfos>(host, &AfterCvGlobals_getNumBuildingInfos);CivRegisterReplace<CivHooks::CvGlobals_getNumBuildingInfos>(host, &ReplaceCvGlobals_getNumBuildingInfos);
Code
3356int CvGlobals::getNumBuildingInfos()3357{3358 return m_pBuildings->GetNumBuildings();3359}
Calls
Called by
53 functions in 19 files
- CvAdvisorCounsel::BuildCounselList(PlayerTypes)
- CvCityBuildings::GetTotalBaseBuildingMaintenance() const
- CvCity::ChangeNumResourceLocal(ResourceTypes, int)
- CvCity::ChooseFreeCultureBuilding() const
- CvCity::ChooseFreeFoodBuilding() const
- CvCity::DoCreatePuppet()
- CvCity::HasSpecialistSlot(SpecialistTypes) const
- CvCity::IsHasBuildingThatAllowsRangeStrike() const
- CvCity::PreKill(bool)
- CvCity::canConstruct(BuildingTypes, bool, bool, bool, bool, CvString *) const
- CvCity::doCheckProduction()
- CvCity::doDecay()
- CvCity::doMeltdown()
- CvCity::getProductionModifier(UnitTypes, CvString *) const
- CvCity::getResourceYieldRateModifier(YieldTypes, ResourceTypes) const
- CvCity::hasActiveWorldWonder() const
- CvCity::init(int, PlayerTypes, int, int, bool, bool, ReligionTypes, const char *)
- CvCity::isAddsFreshWater() const
- CvCity::read(FDataStream &)
- CvCity::reset(int, PlayerTypes, int, int, bool)
- CvCity::setupBuildingGraphics()
- CvCity::setupWonderGraphics()
- CvCity::uninit()
- CvCityCitizens::DoClearForcedSpecialists()
- CvCityCitizens::DoReallocateCitizens()
- CvCityCitizens::DoRemoveWorstSpecialist(SpecialistTypes, const BuildingTypes)
- CvCityCitizens::GetAIBestSpecialistBuilding(int &)
- CvCityCitizens::IsAIWantSpecialistRightNow()
- CvCityCitizens::Reset()
- CvCityCitizens::Write(FDataStream &)
- CvCityStrategyAI::UpdateBestYields()
- CvDllGameContext::GetNumBuildingInfos()
- CvDllDatabaseUtility::ValidatePrefetchProcess()
- CvGame::setInitialItems(CvGameInitialItemsOverrides &)
- CvGlobals::getBuildingInfo(BuildingTypes)
- CvMinorCivAI::GetBestWonderForQuest(PlayerTypes)
- CvPlayer::acquireCity(CvCity *, bool, bool, bool)
- CvPlayer::disband(CvCity *)
- CvPlayer::getAdvancedStartBuildingCost(BuildingTypes, bool, CvCity *)
- CvPlayer::getAdvancedStartTechCost(TechTypes, bool)
- CvPlayer::reset(PlayerTypes, bool)
- CvPlayerAI::AI_considerAnnex()
- CvPlot::processArea(CvArea *, int)
- CvPlayerReligions::CanAffordFaithPurchase(int) const
- CvTeam::Write(FDataStream &) const
- CvTeam::processTech(TechTypes, int)
- CvTeam::reset(TeamTypes, bool)
- CvTeam::shareItems(TeamTypes)
- InitTypeDesc()
- SetupCity(const CvWorldBuilderMap::City &, int, int)
- CvLuaCity::lGetHappiness(lua_State *)
- CvLuaGame::lGetNumWorldWonders(lua_State *)
- CvLuaPlayer::lGetNumWorldWonders(lua_State *)