CvPlayer::getCity(int)
- Defined in
- CvPlayer.cpp, line 21783
- Class
- CvPlayer
- Hook name
CivHooks::CvPlayer_getCity
Hooks
static bool BeforeCvPlayer_getCity(CvPlayer* self, int iID, CvCity*& result);static void AfterCvPlayer_getCity(CvPlayer* self, int iID, CvCity*& result);static CvCity* ReplaceCvPlayer_getCity(CvCity* (*original)(CvPlayer*, int), CvPlayer* self, int iID);CivRegisterBefore<CivHooks::CvPlayer_getCity>(host, &BeforeCvPlayer_getCity);CivRegisterAfter<CivHooks::CvPlayer_getCity>(host, &AfterCvPlayer_getCity);CivRegisterReplace<CivHooks::CvPlayer_getCity>(host, &ReplaceCvPlayer_getCity);
Code
21783CvCity* CvPlayer::getCity(int iID)21784{21785 return(m_cities.GetAt(iID));21786}
Calls
FFreeListTrashArray::GetAt
Called by
35 functions in 14 files
- CvCitySpecializationAI::AssignSpecializations()
- CvCitySpecializationAI::GetWonderBuildCity() const
- CvGameCulture::MoveGreatWorks(PlayerTypes, int, int, int, int, int, int)
- CvPlayerCulture::LogThemedBuilding(int, BuildingTypes, int)
- CvPlayerCulture::MoveWorkIntoSlot(CvGreatWorkInMyEmpire, int, BuildingTypes, int)
- CvDealAI::DoAddCitiesToUs(CvDeal *, PlayerTypes, bool, int &, int &, int &, int, bool)
- CvDealAI::DoAddItemsToDealForPeaceTreaty(PlayerTypes, CvDeal *, PeaceTreatyTypes, bool)
- CvDeal::AddCityTrade(PlayerTypes, int)
- CvDeal::RemoveCityTrade(PlayerTypes, int)
- CvDllNetMessageHandler::ResponseCityBuyPlot(PlayerTypes, int, int, int)
- CvDllNetMessageHandler::ResponseCityDoTask(PlayerTypes, int, TaskTypes, int, int, bool, bool, bool, bool)
- CvDllNetMessageHandler::ResponseCityPopOrder(PlayerTypes, int, int)
- CvDllNetMessageHandler::ResponseCityPurchase(PlayerTypes, int, UnitTypes, BuildingTypes, ProjectTypes, int)
- CvDllNetMessageHandler::ResponseCityPushOrder(PlayerTypes, int, OrderTypes, int, bool, bool, bool)
- CvDllNetMessageHandler::ResponseCitySwapOrder(PlayerTypes, int, int)
- CvDllNetMessageHandler::ResponseMoveSpy(PlayerTypes, int, int, int, bool)
- CvDllNetMessageHandler::ResponseRenameCity(PlayerTypes, int, const char *)
- CvDllNetMessageHandler::ResponseSellBuilding(PlayerTypes, int, BuildingTypes)
- CvDllNetMessageHandler::ResponseSetCityAIFocus(PlayerTypes, int, CityAIFocusTypes)
- CvDllNetMessageHandler::ResponseSetCityAvoidGrowth(PlayerTypes, int, bool)
- CvDllNetMessageHandler::ResponseUpdateCityCitizens(PlayerTypes, int)
- CvDllPlayer::GetCity(int)
- getCity(IDInfo)
- CvNotifications::IsNotificationExpired(int)
- CvPlayer::DoLiberatePlayer(PlayerTypes, int)
- CvPlayer::GetHolyCity()
- CvPlayer::getCapitalCity()
- CvPlot::getPlotCity() const
- CvPlot::isCity() const
- CvTacticalAI::ComputeTotalExpectedBombardDamage(UnitHandle)
- CvTacticalAI::ExecuteAttack(CvTacticalTarget *, CvPlot *, bool, bool)
- CvTacticalAI::ExecuteSafeBombards(CvTacticalTarget &)
- CvTacticalDominanceZone::GetClosestCity() const
- CvUnitCombat::ApplyNuclearExplosionDamage(const CvCombatMemberEntry *, int, CvUnit *, CvPlot *, int)
- CvLuaPlayer::lGetCityByID(lua_State *)