Plot.SetFeatureType (Civ5 API)

From Civilization Modding Wiki
Revision as of 10:40, 20 September 2012 by DonQuich (talk | contribs) (Bot update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

void Plot:SetFeatureType(int featureID, int arg1 = nil)


Parameters

featureID: No description available.
arg1: No description available.


Source code samples

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

Amazon_XP.lua (G&K)

DLC/Expansion/Maps/Amazon_XP.lua
0398
plot:SetFeatureType(featureForest, -1);
0407
plot:SetFeatureType(featureMarsh, -1);
0437
plot:SetFeatureType(featureJungle, -1);


AssignStartingPlots.lua

Gameplay/Lua/AssignStartingPlots.lua
5536
plot:SetFeatureType(wonder_list[1])
5537
table.insert(self.placed_natural_wonder, 1);
5570
plot:SetFeatureType(wonder_list[2])
5571
table.insert(self.placed_natural_wonder, 2);
5612
plot:SetFeatureType(wonder_list[3])
5613
table.insert(self.placed_natural_wonder, 3);
5646
plot:SetFeatureType(wonder_list[4])
5647
table.insert(self.placed_natural_wonder, 4);
5680
plot:SetFeatureType(wonder_list[5])
5681
table.insert(self.placed_natural_wonder, 5);
5759
plot:SetFeatureType(wonder_list[6])
5760
SEPlot:SetFeatureType(wonder_list[6])
5761
table.insert(self.placed_natural_wonder, 6);
5801
plot:SetFeatureType(wonder_list[7])
5802
table.insert(self.placed_natural_wonder, 7);
5832
plot:SetFeatureType(wonder_list[8])
5833
table.insert(self.placed_natural_wonder, 8);
5839
plot:SetFeatureType(wonder_list[9])
5840
table.insert(self.placed_natural_wonder, 9);
5845
plot:SetFeatureType(wonder_list[10])
5846
table.insert(self.placed_natural_wonder, 10);


AssignStartingPlots.lua (G&K)

DLC/Expansion/Gameplay/Lua/AssignStartingPlots.lua
2858
forcePlot:SetFeatureType(FeatureTypes.NO_FEATURE, -1);
3530
plot:SetFeatureType(FeatureTypes.FEATURE_OASIS, -1);
3578
plot:SetFeatureType(FeatureTypes.NO_FEATURE, -1);
5972
plot:SetFeatureType(feature_type_to_place)
5973
table.insert(self.placed_natural_wonder, wonder_number);
9536
plot:SetFeatureType(FeatureTypes.FEATURE_MARSH, -1)
9537
plot:SetTerrainType(TerrainTypes.TERRAIN_GRASS, false, true)


Boreal.lua (G&K)

DLC/Expansion/Maps/Boreal.lua
0567
plot:SetFeatureType(self.featureIce, -1)
0568
elseif iY >= iH - 5 and plot:IsWater() then
0583
plot:SetFeatureType(self.featureIce, -1)
0584
end


Europe.lua (G&K)

DLC/Expansion/Maps/Europe.lua
1171
plot:SetFeatureType(wonder_list[11])
1172
table.insert(self.placed_natural_wonder, 11);


FeatureGenerator.lua (G&K)

DLC/Expansion/Gameplay/Lua/FeatureGenerator.lua
0206
plot:SetFeatureType(self.featureFloodPlains, -1)
0207
end
0234
plot:SetFeatureType(self.featureOasis, -1);
0242
plot:SetFeatureType(self.featureIce, -1)
0244
else
0248
plot:SetFeatureType(self.featureIce, -1);
0260
plot:SetFeatureType(self.featureMarsh, -1)
0261
end
0278
plot:SetFeatureType(self.featureForest, -1)
0279
end
0536
plot:SetFeatureType(feature_atoll, -1);


Great_Plains.lua

Maps/Great_Plains.lua
0512
plot:SetFeatureType(featureFloodPlains, -1)
0513
end
0518
plot:SetFeatureType(featureOasis, -1);


Ice_Age.lua

Maps/Ice_Age.lua
0462
plot:SetFeatureType(self.featureIce, -1)
0464
elseif lat > 0.47 then
0467
plot:SetFeatureType(self.featureIce, -1)
0468
elseif rand < 4 * (lat - 0.46) then


MapGenerator.lua (G&K)

DLC/Expansion/Gameplay/Lua/MapGenerator.lua
0591
plot:SetFeatureType(feature.ID);


NaturalWondersCustomMethods.lua (G&K)

DLC/Expansion/Gameplay/Lua/NaturalWondersCustomMethods.lua
0162
SEPlot:SetFeatureType(FeatureTypes.NO_FEATURE, -1)
0163
end
0197
SEPlot:SetFeatureType(feature_type_to_place);


Rainforest.lua (G&K)

DLC/Expansion/Maps/Rainforest.lua
0737
plot:SetFeatureType(self.featureJungle, -1);


WorldView.lua

UI/InGame/WorldView/WorldView.lua
0276
plot:SetFeatureType(iFeatureID);



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.