Plot.GetPlotCity (Civ5 API)

From Civilization Modding Wiki
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 Plot.

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


Usage

int Plot:GetPlotCity()


Returned Value

No description available.


Source code samples

Too many occurences. Only 50 out of 197 are listed.

CityBannerManager.lua

UI/InGame/CityBannerManager.lua
0953
local city = plot:GetPlotCity();
1098
if (plot:GetPlotCity():IsPuppet()) then


EnemyUnitPanel.lua

UI/InGame/WorldView/EnemyUnitPanel.lua
1807
local pCity = pPlot:GetPlotCity();


EspionageOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/EspionageOverview.lua
0386
city = plot:GetPlotCity();


TurnsRemaining.lua - DLC_04 DLC

DLC/DLC_04/Scenarios/1066Scenario/TurnsRemaining.lua
0336
pCity = Map.GetPlot(19,55):GetPlotCity();
0342
pCity = Map.GetPlot(29,73):GetPlotCity();
0346
pCity = Map.GetPlot(56,69):GetPlotCity();
0358
pCity = Map.GetPlot(61,50):GetPlotCity();
0366
pCity = Map.GetPlot(40,1):GetPlotCity();
0377
pCity = Map.GetPlot(43,17):GetPlotCity();
0420
pCity = Map.GetPlot(36,16):GetPlotCity();
0434
pCity = Map.GetPlot(42,26):GetPlotCity();
0443
pCity = Map.GetPlot(41,10):GetPlotCity();
0446
pCity = Map.GetPlot(39,18):GetPlotCity();
0449
pCity = Map.GetPlot(49,21):GetPlotCity();
0452
pCity = Map.GetPlot(35,27):GetPlotCity();


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua
1534
local pCity = Map.GetPlot(iX, iY):GetPlotCity();


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/FallOfRomeScenario/TurnsRemaining.lua
0503
pCity = Map.GetPlot(10,16):GetPlotCity(); -- Russadir
0505
pCity = Map.GetPlot(15,18):GetPlotCity(); -- Iol Caesarea
0515
pCity = Map.GetPlot(37,27):GetPlotCity(); -- Neapoli
0517
pCity = Map.GetPlot(41,27):GetPlotCity(); -- Brundisium
0521
pCity = Map.GetPlot(6,29):GetPlotCity();  -- Emerita Augusta
0525
pCity = Map.GetPlot(33,31):GetPlotCity(); -- Rome
0527
pCity = Map.GetPlot(14,34):GetPlotCity(); -- Caesaraugusta
0529
pCity = Map.GetPlot(20,36):GetPlotCity(); -- Narbo
0539
pCity = Map.GetPlot(3,39):GetPlotCity();  -- Brigantium
0541
pCity = Map.GetPlot(30,40):GetPlotCity(); -- Milan
0545
pCity = Map.GetPlot(22,42):GetPlotCity(); -- Lundunum
0547
pCity = Map.GetPlot(32,45):GetPlotCity(); -- Casta Regina
0555
pCity = Map.GetPlot(26,49):GetPlotCity(); -- Trier
0557
pCity = Map.GetPlot(17,52):GetPlotCity(); -- Coriallum
0567
pCity = Map.GetPlot(48,7):GetPlotCity();  -- Cyrene
0579
pCity = Map.GetPlot(73,20):GetPlotCity(); -- Antioch
0581
pCity = Map.GetPlot(63,21):GetPlotCity(); -- Attalia
0583
pCity = Map.GetPlot(76,21):GetPlotCity(); -- Edessa
0585
pCity = Map.GetPlot(51,22):GetPlotCity(); -- Athens
0587
pCity = Map.GetPlot(47,23):GetPlotCity(); -- Nicopolis
0591
pCity = Map.GetPlot(67,24):GetPlotCity(); -- Iconium
0593
pCity = Map.GetPlot(75,26):GetPlotCity(); -- Melitene
0599
pCity = Map.GetPlot(58,29):GetPlotCity(); -- Constantinople
0601
pCity = Map.GetPlot(45,30):GetPlotCity(); -- Dyrrachium
0603
pCity = Map.GetPlot(71,30):GetPlotCity(); -- Amasia
0607
pCity = Map.GetPlot(64,32):GetPlotCity(); -- Amastris
0611
pCity = Map.GetPlot(49,34):GetPlotCity(); -- Naissus
0623
pCity = Map.GetPlot(87,17):GetPlotCity(); -- Ctesiphon
0629
pCity = Map.GetPlot(79,24):GetPlotCity(); -- Amida
0633
pCity = Map.GetPlot(81,33):GetPlotCity(); -- Anium
0955
pCity = Map.GetPlot(1,15):GetPlotCity(); -- Tricameron
0959
pCity = Map.GetPlot(4,19):GetPlotCity(); -- Caput Vada
0963
pCity = Map.GetPlot(84, 58):GetPlotCity(); -- Attila's Court



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.