Plot.GetPlotType (Civ5 API)
This page is a part of the Lua and UI Reference (Civ5).
This function is a member of Plot. This is an instance method, invoke it with a colon. |
Usage
PlotType Plot:GetPlotType()
Returned Value
- No description available.
Source code samples
Too many occurences. Only 50 out of 169 are listed.
Amazon_XP.lua (G&K)
DLC/Expansion/Maps/Amazon_XP.lua
0342
|
if plot:GetPlotType() == PlotTypes.PLOT_MOUNTAIN then |
0541
|
local sum = (numPlots - plot:GetPlotType()) * 20; |
0546
|
sum = sum + (numPlots - adjacentPlot:GetPlotType()); |
0998
|
local plotType = plot:GetPlotType() |
0999
|
if plotType == PlotTypes.PLOT_OCEAN or plotType == PlotTypes.PLOT_MOUNTAIN then |
1326
|
local plotType = res_plot:GetPlotType() |
1327
|
local terrainType = res_plot:GetTerrainType() |
Arborea.lua (G&K)
DLC/Expansion/Maps/Arborea.lua
0608
|
if plot:GetPlotType() ~= PlotTypes.PLOT_OCEAN then |
AssignStartingPlots.lua
Gameplay/Lua/AssignStartingPlots.lua
5010
|
plotType = adjPlot:GetPlotType(); |
AssignStartingPlots.lua (G&K)
DLC/Expansion/Gameplay/Lua/AssignStartingPlots.lua
0786
|
local plotType = plot:GetPlotType(); |
1793
|
local plotType = plot:GetPlotType() |
1794
|
local terrainType = plot:GetTerrainType() |
2632
|
local plotType = plot:GetPlotType() |
2633
|
if plotType == PlotTypes.PLOT_HILLS or plotType == PlotTypes.PLOT_LAND then -- Could host a city. |
2960
|
local plotType = plot:GetPlotType() |
2961
|
if plotType ~= PlotTypes.PLOT_MOUNTAIN then -- Not a mountain plot. |
3228
|
local plotType = plot:GetPlotType() |
3229
|
if plotType == PlotTypes.PLOT_HILLS or plotType == PlotTypes.PLOT_LAND then -- Land plot, process it. |
3489
|
local plotType = plot:GetPlotType() |
3491
|
if featureType == FeatureTypes.FEATURE_JUNGLE then -- Place Banana |
3564
|
local plotType = plot:GetPlotType() |
3565
|
local featureType = plot:GetFeatureType(); |
3783
|
local plotType = plot:GetPlotType() |
3784
|
if plotType == PlotTypes.PLOT_LAND then |
3877
|
local plotType = searchPlot:GetPlotType() |
3878
|
local terrainType = searchPlot:GetTerrainType() |
5284
|
local plotType = plot:GetPlotType() |
5285
|
if plotType == PlotTypes.PLOT_LAND and self.CoreTileCanBeFlatland[wn] == true then |
5344
|
local plotType = adjPlot:GetPlotType(); |
5949
|
if plot:GetPlotType() ~= PlotTypes.PLOT_LAND then |
9532
|
local plotType = plot:GetPlotType() |
9533
|
if plotType ~= PlotTypes.PLOT_LAND then |
Boreal.lua (G&K)
DLC/Expansion/Maps/Boreal.lua
0192
|
local plot_type = plot:GetPlotType() |
0193
|
if plot_type ~= PlotTypes.PLOT_OCEAN then |
0232
|
local sum = ((numPlots - plot:GetPlotType()) * 20) + direction_influence_value; |
0729
|
local plotType = plot:GetPlotType() |
0730
|
if plotType == PlotTypes.PLOT_OCEAN or plotType == PlotTypes.PLOT_MOUNTAINS then |
Europe.lua (G&K)
DLC/Expansion/Maps/Europe.lua
1131
|
if adjPlot:GetPlotType() ~= PlotTypes.PLOT_LAND then |
FeatureGenerator.lua (G&K)
DLC/Expansion/Gameplay/Lua/FeatureGenerator.lua
0355
|
local plotType = plot:GetPlotType() |
0356
|
if plotType == PlotTypes.PLOT_OCEAN then |
0369
|
local adjPlotType = adjPlot:GetPlotType() |
0370
|
if adjPlotType ~= PlotTypes.PLOT_OCEAN then -- Found land. |
MapmakerUtilities.lua
Gameplay/Lua/MapmakerUtilities.lua
0308
|
local plotType = plot:GetPlotType() |
0309
|
if plotType ~= PlotTypes.PLOT_OCEAN then -- This plot is land, process it. |
0321
|
local type = testPlot:GetPlotType() |
0322
|
if type == PlotTypes.PLOT_OCEAN then -- Adjacent plot is water! Check if ocean or lake. |
NaturalWondersCustomMethods.lua (G&K)
DLC/Expansion/Gameplay/Lua/NaturalWondersCustomMethods.lua
0213
|
if adjPlot:GetPlotType() == PlotTypes.PLOT_OCEAN then |
0218
|
if adjPlot:GetPlotType() ~= PlotTypes.PLOT_MOUNTAIN then |
Rainforest.lua (G&K)
DLC/Expansion/Maps/Rainforest.lua
0735
|
local plot_type = plot:GetPlotType() |
0736
|
if plot_type == PlotTypes.PLOT_LAND or plot_type == PlotTypes.PLOT_HILLS then |
Skirmish.lua
Maps/Skirmish.lua
0253
|
local plotType = searchPlot:GetPlotType() |
0254
|
if plotType == PlotTypes.PLOT_MOUNTAIN then |
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.