Plot.CanHaveFeature (Civ5 API): Difference between revisions
From Civilization Modding Wiki
Jump to navigationJump to search
(Bot update) |
(No difference)
|
Latest revision as of 10:05, 20 September 2012
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
int Plot:CanHaveFeature(FeatureType featureForest)
Returned Value
- No description available.
Parameters
featureForest: No description available.
Source code samples
Redundant occurences have been removed.
Amazon_XP.lua (G&K)
DLC/Expansion/Maps/Amazon_XP.lua
0397
|
if plot:CanHaveFeature(featureForest) and forests:GetHeight(x, y) >= iForestLevel then |
0402
|
if plot:CanHaveFeature(featureForest) and forests:GetHeight(x, y) >= iSEForestLevel then |
FeatureGenerator.lua (G&K)
DLC/Expansion/Gameplay/Lua/FeatureGenerator.lua
0204
|
if plot:CanHaveFeature(self.featureFloodPlains) then |
0232
|
if(plot:CanHaveFeature(self.featureOasis)) then |
0240
|
if(plot:CanHaveFeature(self.featureIce)) then |
0259
|
if(plot:CanHaveFeature(self.featureMarsh)) then |
0269
|
if(plot:CanHaveFeature(self.featureJungle)) then |
0277
|
if plot:CanHaveFeature(self.featureForest) then |
Great_Plains.lua
Maps/Great_Plains.lua
0511
|
if plot:CanHaveFeature(featureFloodPlains) then |
0516
|
if (plot:CanHaveFeature(featureOasis)) then |
0526
|
if (plot:CanHaveFeature(featureMarsh)) then |
0540
|
elseif long > 0.72 and plot:CanHaveFeature(featureForest) then |
0545
|
if plot:CanHaveFeature(featureForest) then |
MapGenerator.lua (G&K)
DLC/Expansion/Gameplay/Lua/MapGenerator.lua
0588
|
if(plot:CanHaveFeature(feature.ID)) then |
Skirmish.lua
Maps/Skirmish.lua
0740
|
if (plot:CanHaveFeature(self.featureIce)) 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.