CvPlayer::getNumCities() const
- Defined in
- CvPlayer.cpp, line 21776
- Class
- CvPlayer
- Hook name
CivHooks::CvPlayer_getNumCities
Hooks
static bool BeforeCvPlayer_getNumCities(const CvPlayer* self, int& result);static void AfterCvPlayer_getNumCities(const CvPlayer* self, int& result);static int ReplaceCvPlayer_getNumCities(int (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_getNumCities>(host, &BeforeCvPlayer_getNumCities);CivRegisterAfter<CivHooks::CvPlayer_getNumCities>(host, &AfterCvPlayer_getNumCities);CivRegisterReplace<CivHooks::CvPlayer_getNumCities>(host, &ReplaceCvPlayer_getNumCities);
Code
21776int CvPlayer::getNumCities() const21777{21778 return m_cities.GetCount();21779}
Calls
FFreeListArrayBase::GetCount
Called by
101 functions in 28 files
- CvAdvisorCounsel::BuildCounselList(PlayerTypes)
- CvAIOperationFoundCity::Init(int, PlayerTypes, PlayerTypes, int, CvCity *, CvCity *)
- CvBuilderTaskingAI::EvaluateBuilder(CvUnit *, BuilderDirective *, UINT, bool, bool, bool)
- CvBuilderTaskingAI::Update()
- CvCity::init(int, PlayerTypes, int, int, bool, bool, ReligionTypes, const char *)
- CvCitySpecializationAI::DoTurn()
- CvCitySpecializationAI::SelectSpecializations()
- CvCitySpecializationAI::WeightSpecializations()
- CityStrategyAIHelpers::IsTestCityStrategy_CapitalNeedSettler(AICityStrategyTypes, CvCity *)
- CityStrategyAIHelpers::IsTestCityStrategy_EnoughTileImprovers(AICityStrategyTypes, CvCity *)
- CityStrategyAIHelpers::IsTestCityStrategy_NeedTileImprovers(AICityStrategyTypes, CvCity *)
- CityStrategyAIHelpers::IsTestCityStrategy_WantTileImprovers(AICityStrategyTypes, CvCity *)
- CvPlayerCulture::ComputePublicOpinionUnhappiness(int, int &, int &)
- CvPlayerCulture::LogCultureData()
- CvDealAI::DoAddCitiesToUs(CvDeal *, PlayerTypes, bool, int &, int &, int &, int, bool)
- CvDealAI::DoAddItemsToDealForPeaceTreaty(PlayerTypes, CvDeal *, PeaceTreatyTypes, bool)
- CvDealAI::GetOpenBordersValue(bool, PlayerTypes, bool)
- CvDealAI::GetResourceValue(ResourceTypes, int, int, bool, PlayerTypes)
- CvDeal::IsPossibleToTradeItem(PlayerTypes, PlayerTypes, TradeableItems, int, int, int, bool, bool, bool)
- CvDiplomacyAI::DoContactMinorCivs()
- CvDiplomacyAI::DoUpdateEstimateOtherPlayerLandDisputeLevels()
- CvDiplomacyAI::DoUpdateOtherPlayerWarDamageLevel()
- CvDiplomacyAI::GetBestApproachTowardsMinorCiv(PlayerTypes, int &, bool, bool)
- CvDiplomacyAI::GetGreetHumanMessage(LeaderheadAnimationTypes &)
- CvDiplomacyAI::GetInsultHumanMessage()
- CvDiplomacyAI::IsPlayerRecklessExpander(PlayerTypes)
- CvDiplomacyAI::IsPlayerValid(PlayerTypes, bool)
- CvDiplomacyAIHelpers::GetWarmongerOffset(PlayerTypes, bool)
- CvDllPlayer::GetNumCities() const
- CvEconomicAI::DisbandExtraWorkers()
- CvEconomicAI::GetWorkersToCitiesRatio()
- CvEconomicAI::LogMonitor()
- EconomicAIHelpers::IsTestStrategy_CitiesNeedNavalGrowth(EconomicAIStrategyTypes, CvPlayer *)
- EconomicAIHelpers::IsTestStrategy_CitiesNeedNavalTileImprovement(EconomicAIStrategyTypes, CvPlayer *)
- EconomicAIHelpers::IsTestStrategy_EarlyExpansion(CvPlayer *)
- EconomicAIHelpers::IsTestStrategy_FoundCity(EconomicAIStrategyTypes, CvPlayer *)
- EconomicAIHelpers::IsTestStrategy_NeedImprovement(CvPlayer *, YieldTypes)
- CvEspionageAI::BuildMinorCityList(EspionageCityList &)
- CvEspionageAI::FindTargetSpyNumbers(int *, int *, int *, int *)
- CvGame::calculateSyncChecksum()
- CvGame::getMaxTurnLen()
- CvGame::getNumCivCities() const
- CvGame::initFreeUnits(CvGameInitialItemsOverrides &)
- CvHomelandAI::PlotFirstTurnSettlerMoves()
- CvMilitaryAI::LogMilitaryStatus()
- CvMilitaryAI::UpdateBaseData()
- CvMinorCivAI::DoAddStartingResources(CvPlot *)
- CvPlayer::ChangeNumFreePolicies(int)
- CvPlayer::ChangeNumFreeTenets(int, bool)
- CvPlayer::DoCivilianReturnLogic(bool, PlayerTypes, int)
- CvPlayer::DoDeficit()
- CvPlayer::DoUpdateCityConnectionHappiness()
- CvPlayer::DoUpdateHappiness()
- CvPlayer::DoUprising()
- CvPlayer::GatherPerTurnReplayStats(int)
- CvPlayer::GetGoldenAgeProgressThreshold() const
- CvPlayer::GetGreatPersonSpawnCity(UnitTypes)
- CvPlayer::GetHappinessFromPolicies() const
- CvPlayer::GetJONSCulturePerCityPerTurn() const
- CvPlayer::GetMaxEffectiveCities(bool)
- CvPlayer::GetMostUnhappyCity()
- CvPlayer::GetNumUnitsSuppliedByCities() const
- CvPlayer::GetScoreFromCities() const
- CvPlayer::acquireCity(CvCity *, bool, bool, bool)
- CvPlayer::canConstruct(BuildingTypes, bool, bool, bool, CvString *) const
- CvPlayer::canReceiveGoody(CvPlot *, GoodyTypes, CvUnit *) const
- CvPlayer::disband(CvCity *)
- CvPlayer::doAdvancedStartAction(AdvancedStartActionTypes, int, int, int, bool)
- CvPlayer::doTurnPostDiplomacy()
- CvPlayer::doWarnings()
- CvPlayer::getAdvancedStartBuildingCost(BuildingTypes, bool, CvCity *)
- CvPlayer::getAdvancedStartCityCost(bool, CvPlot *)
- CvPlayer::getAdvancedStartImprovementCost(ImprovementTypes, bool, CvPlot *)
- CvPlayer::getAdvancedStartPopCost(bool, CvCity *)
- CvPlayer::getAdvancedStartRouteCost(RouteTypes, bool, CvPlot *)
- CvPlayer::getAdvancedStartTechCost(TechTypes, bool)
- CvPlayer::getAdvancedStartUnitCost(UnitTypes, bool, CvPlot *)
- CvPlayer::getAdvancedStartVisibilityCost(bool, CvPlot *)
- CvPlayer::getAveragePopulation() const
- CvPlayer::getProductionNeeded(BuildingTypes) const
- CvPlayer::setAlive(bool, bool)
- CvPlayer::setCombatExperienceTimes100(int, CvUnit *)
- CvPlayer::setNavalCombatExperienceTimes100(int, CvUnit *)
- CvPlayer::setTeam(TeamTypes)
- CvPlayer::verifyAlive()
- CvPlayerAI::AI_conquerCity(CvCity *, PlayerTypes)
- CvPlayerAI::GreatMerchantWantsCash()
- CvPlayerReligions::HasOthersReligionInMostCities(PlayerTypes) const
- CvPlayerReligions::HasReligionInMostCities(ReligionTypes) const
- CvCitySiteEvaluator::CanFound(CvPlot *, const CvPlayer *, bool) const
- CvTacticalAI::IsHighPriorityCivilianTarget(CvTacticalTarget *)
- CvTeam::DoTestSmallAwards()
- CvTreasury::CalculateUnitCost(int &, int &, int &, int &)
- CvTreasury::DoUpdateCityConnectionGold()
- CvUnit::IsLargerCivThan(const CvUnit *) const
- CvUnit::canBuyCityState(const CvPlot *, bool) const
- CvUnit::canDiscover(const CvPlot *, bool) const
- CvUnitProductionAI::GetTempWeightRevised(UnitTypes, int)
- CvLeague::IsResolutionEffectsValid(ResolutionTypes, int, CvString *)
- CvLeagueAI::ScoreVoteChoiceYesNo(CvProposal *, int, bool)
- CvLuaPlayer::lGetNumCities(lua_State *)