Map.GetPlot (Civ5 API)
This page is a part of the Lua and UI Reference (Civ5).
This function is a member of Map. This is a static method, invoke it with a dot. |
Usage
Plot Map.GetPlot(int x, int y = nil)
Returned Value
- No description available.
Parameters
x: No description available. y: No description available.
Source code samples
Too many occurences. Only 50 out of 678 are listed.
AssignStartingPlots.lua (G&K)
DLC/Expansion/Gameplay/Lua/AssignStartingPlots.lua
2853
|
local forcePlot = Map.GetPlot(iWestX, iSouthY); |
4595
|
local start_plot = Map.GetPlot(x, y) |
4596
|
local player = Players[player_ID] |
7499
|
local res_plot = Map.GetPlot(x, y) |
7500
|
if res_plot:GetResourceType(-1) == -1 then -- Placing this strategic resource in this plot. |
CityBannerManager.lua
UI/InGame/CityBannerManager.lua
1089
|
local plot = Map.GetPlot( x, y ); |
CityStateDiploPopup.lua (G&K)
DLC/Expansion/UI/InGame/Popups/CityStateDiploPopup.lua
0611
|
local pPlot = Map.GetPlot(iQuestData1, iQuestData2); |
Europe_Scenario.lua (G&K)
DLC/Expansion/Scenarios/MedievalScenario/Europe_Scenario.lua
1215
|
local start_plot = Map.GetPlot(x, y) |
1216
|
local player = Players[Celts_PlayerID]; |
FeatureGenerator.lua (G&K)
DLC/Expansion/Gameplay/Lua/FeatureGenerator.lua
0535
|
local plot = Map.GetPlot(x, y) |
0536
|
plot:SetFeatureType(feature_atoll, -1); |
MapmakerUtilities.lua
Gameplay/Lua/MapmakerUtilities.lua
0096
|
local plotFirst = Map.GetPlot(0, y); |
PlotHelpManager.lua
UI/InGame/PlotHelpManager.lua
0122
|
local plot = Map.GetPlot(m_iCurrentX, m_iCurrentY); |
0327
|
local plot = Map.GetPlot( hexX, hexY ); |
Rainforest.lua (G&K)
DLC/Expansion/Maps/Rainforest.lua
0732
|
local plot = Map.GetPlot(iX, iY) |
0733
|
local terrain_type = plot:GetTerrainType() |
Skirmish.lua
Maps/Skirmish.lua
0236
|
local plot = Map.GetPlot(x, y) |
0237
|
if plot:IsFlatlands() then -- Check for adjacent Mountain plot; if found, change this plot to Hills. |
TurnsRemaining.lua - DLC_04 DLC
DLC/DLC_04/Scenarios/1066Scenario/TurnsRemaining.lua
0342
|
pCity = Map.GetPlot(29,73):GetPlotCity(); |
0344
|
pCity = Map.GetPlot(30,77):GetPlotCity(); |
0348
|
pCity = Map.GetPlot(61,62):GetPlotCity(); |
0366
|
pCity = Map.GetPlot(40,1):GetPlotCity(); |
0452
|
pCity = Map.GetPlot(35,27):GetPlotCity(); |
0493
|
pPlot = Map.GetPlot(44,18); |
0751
|
Map.GetPlot(42,38):GetUnit(0):SetDeployFromOperationTurn(1); |
0752
|
Map.GetPlot(43,38):GetUnit(0):SetDeployFromOperationTurn(1); |
0760
|
Map.GetPlot(45,36):GetUnit(0):SetDeployFromOperationTurn(1); |
TurnsRemaining.lua (G&K)
DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua
0484
|
local pJerusalemPlot = Map.GetPlot(iJerusalemX, iJerusalemY); |
TurnsRemaining.lua (G&K)
DLC/Expansion/Scenarios/FallOfRomeScenario/TurnsRemaining.lua
0513
|
pCity = Map.GetPlot(13,25):GetPlotCity(); -- Carthago Nova |
0515
|
pCity = Map.GetPlot(37,27):GetPlotCity(); -- Neapoli |
0517
|
pCity = Map.GetPlot(41,27):GetPlotCity(); -- Brundisium |
0553
|
pCity = Map.GetPlot(21,48):GetPlotCity(); -- Lutetia |
0557
|
pCity = Map.GetPlot(17,52):GetPlotCity(); -- Coriallum |
0567
|
pCity = Map.GetPlot(48,7):GetPlotCity(); -- Cyrene |
0571
|
pCity = Map.GetPlot(79,13):GetPlotCity(); -- Palmyra |
0573
|
pCity = Map.GetPlot(74,14):GetPlotCity(); -- Damascus |
0591
|
pCity = Map.GetPlot(67,24):GetPlotCity(); -- Iconium |
0597
|
pCity = Map.GetPlot(50,28):GetPlotCity(); -- Thessalonica |
0599
|
pCity = Map.GetPlot(58,29):GetPlotCity(); -- Constantinople |
0601
|
pCity = Map.GetPlot(45,30):GetPlotCity(); -- Dyrrachium |
0625
|
pCity = Map.GetPlot(85,20):GetPlotCity(); -- Singara |
1042
|
pPlot = Map.GetPlot(40,36); -- legion |
1098
|
pPlot = Map.GetPlot(54,31); -- legion |
1100
|
pPlot = Map.GetPlot(71,20); -- boat |
1111
|
pPlot = Map.GetPlot(88,17); -- composite bowman |
1127
|
pPlot = Map.GetPlot(84,20); -- Clib |
1161
|
pPlot = Map.GetPlot(47,44); -- catapult |
1177
|
pPlot = Map.GetPlot(1,17); -- Trih |
1197
|
pPlot = Map.GetPlot(6,14); -- composite bowman |
1215
|
pPlot = Map.GetPlot(29,56); -- seaxman |
1227
|
pPlot = Map.GetPlot(31,53); -- seaxman |
1229
|
pPlot = Map.GetPlot(37,57); -- seaxman |
1245
|
pPlot = Map.GetPlot(15,57); -- archer |
1261
|
pPlot = Map.GetPlot(20,56); -- boat |
1293
|
pPlot = Map.GetPlot(81,58); -- worker |
TutorialChecks.lua
Tutorial/TutorialChecks.lua
2039
|
local pPlot = Map.GetPlot( gridPosX, gridPosY ); |
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.