City.Plot (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 City.

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


Usage

Plot City:Plot()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

ActionInfoPanel.lua

UI/InGame/WorldView/ActionInfoPanel.lua
0130
UI.LookAt(pCity:Plot(), 0);


AnnexCityPopup.lua

UI/InGame/PopupsGeneric/AnnexCityPopup.lua
0035
UI.DoSelectCityAtPlot( newCity:Plot() );


Bombardment.lua

UI/InGame/Bombardment.lua
0024
thisPlot = pHeadSelectedCity:Plot();


CityBannerManager.lua

UI/InGame/CityBannerManager.lua
1070
UI.HighlightCanPlacePlots(unit, city:Plot());


CityStateDiploPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/CityStateDiploPopup.lua
0781
local pPlot = pCity:Plot();


InGame.lua

UI/InGame/InGame.lua
0293
lastCityEnteredPlot = lastCityEntered:Plot();


ProductionPopup.lua

UI/InGame/Popups/ProductionPopup.lua
0197
local plot = city:Plot();


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua
0816
pJerusalemPlot = pCity:Plot();
0822
pVaticanPlot = pCity:Plot();
0830
pMeccaPlot = pCity:Plot();
0876
pByzantinePlot = capital:Plot();


TutorialChecks.lua

Tutorial/TutorialChecks.lua
1075
local pCapitalCityPlot = pCapitalCity:Plot();
1941
return v:Plot();
2525
local pPlot = v:Plot();
2923
return pCity:Plot();



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.