Area.GetNumTiles (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 Area.

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


Usage

int Area:GetNumTiles()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

Amazon_XP.lua (G&K)

DLC/Expansion/Maps/Amazon_XP.lua
0823
return (plot:IsHills() or plot:IsMountain()) and (area:GetNumRiverEdges() <   ((area:GetNumTiles() / plotsPerRiverEdge) + 1));
0829
return (area:GetNumRiverEdges() < (area:GetNumTiles() / plotsPerRiverEdge) + 1);


Arborea.lua (G&K)

DLC/Expansion/Maps/Arborea.lua
0218
iNumBiggestAreaTiles = biggest_area:GetNumTiles();


AssignStartingPlots.lua (G&K)

DLC/Expansion/Gameplay/Lua/AssignStartingPlots.lua
5776
iNumBiggestOceanPlots = biggest_ocean:GetNumTiles()
5777
end


Europe.lua (G&K)

DLC/Expansion/Maps/Europe.lua
0494
local testArea_size = testArea:GetNumTiles()
0495
if testArea_size >= 10 then
1045
local iNumBiggestOceanPlots = biggest_ocean:GetNumTiles()
1046
if iNumBiggestOceanPlots > (iW * iH) / 4 then


FeatureGenerator.lua (G&K)

DLC/Expansion/Gameplay/Lua/FeatureGenerator.lua
0384
local iNumAreaPlots = adjArea:GetNumTiles()
0385
if iNumAreaPlots > biggest_adj_area then


Great_Plains_XP.lua (G&K)

DLC/Expansion/Maps/Great_Plains_XP.lua
1247
local iNumBiggestOceanPlots = biggest_ocean:GetNumTiles()
1248
self.bWorldHasOceans = false;


MapGenerator.lua (G&K)

DLC/Expansion/Gameplay/Lua/MapGenerator.lua
0628
local numTiles = area:GetNumTiles();
0700
local scaler = (area:GetNumTiles() + (tilesPerGoody/2))/tilesPerGoody;



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.