Player.GetCityByID (Civ5 API)

From Civilization Modding Wiki
Revision as of 07:53, 20 September 2012 by DonQuich (talk | contribs) (Bot update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This page is a part of the Lua and UI Reference (Civ5).


Function.png This function is a member of Player.

This is an instance method, invoke it with a colon.


Usage

City Player:GetCityByID(CityID city)


Returned Value

No description available.

Parameters

city: No description available.


Source code samples

Redundant occurences have been removed.

AnnexCityPopup.lua

UI/InGame/PopupsGeneric/AnnexCityPopup.lua
0008
local newCity      = activePlayer:GetCityByID(cityID);


CityBannerManager.lua

UI/InGame/CityBannerManager.lua
0098
local city = player:GetCityByID(cityBanner.cityID);
0990
local city = player:GetCityByID(CityID);
1183
local city = activePlayer:GetCityByID(cityID);
1249
local city = player:GetCityByID( cityIndex );


CityBannerManager.lua (G&K)

DLC/Expansion/UI/InGame/CityBannerManager.lua
0870
local city = Players[iPlayerID]:GetCityByID(iCityID);


EspionageOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/EspionageOverview.lua
0794
local pCity = pPlayer:GetCityByID(cityInfo.CityID);


GreatPersonRewardPopup.lua

UI/InGame/Popups/GreatPersonRewardPopup.lua
0022
local pCity = Players[iPlayer]:GetCityByID(iCityID);


LiberateMinorPopup.lua

UI/InGame/PopupsGeneric/LiberateMinorPopup.lua
0009
local pNewCity         = pActivePlayer:GetCityByID(iCityID);


ProductionPopup.lua

UI/InGame/Popups/ProductionPopup.lua
0758
local city = player:GetCityByID( popupInfo.Data1 );


TurnsRemaining.lua - DLC_04 DLC

DLC/DLC_04/Scenarios/1066Scenario/TurnsRemaining.lua
0103
local pCity = pPlayer:GetCityByID(iCity);


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua
0316
local pCity = pPlayer:GetCityByID(cityIndex);


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/SteampunkScenario/TurnsRemaining.lua
0235
local pCity = pPlayer:GetCityByID(iCityID);


VictoryStatus.lua (G&K)

DLC/Expansion/Scenarios/SteampunkScenario/VictoryStatus.lua
0177
local pYourBestCity = pForPlayer:GetCityByID(iYourBestCityID);
0190
local pCity = Players[iPlayerLoop]:GetCityByID(iBestCityID);



The initial version of this page was created by the Civ5 API Bot, see the Civ5 API Reference FAQ. Some of the texts come from the 2kgames' wiki and most of code samples are copyrighted to Firaxis.
Functions' signatures were either copied from the 2kgames' wiki, or infered from the Lua source files and the binaries. Errors are possible.
Contributors may find help in the Contributors guide to the Civ5 API.