Area (Civ5 Type): Difference between revisions
(Bot update) |
(Bot update) |
||
Line 10: | Line 10: | ||
{|cellspacing="4" cellpadding="0" width="100%" | {|cellspacing="4" cellpadding="0" width="100%" | ||
|- | |- | ||
| [[File: | | [[File:Civ5-16.png|Base game]] || [[File:GK.png|Gods & Kings]] || || || <code style="visibility:hidden;">___________________________</code> | ||
<!-- | <!-- | ||
CALCULATETOTALBESTNATUREYIELD | CALCULATETOTALBESTNATUREYIELD | ||
Line 37: | Line 37: | ||
{|cellspacing="4" cellpadding="0" width="100%" | {|cellspacing="4" cellpadding="0" width="100%" | ||
|- | |- | ||
| [[File: | | [[File:Civ5-16.png|Base game]] || [[File:GK.png|Gods & Kings]] || || || <code style="visibility:hidden;">___________________________</code> | ||
<!-- | <!-- | ||
GETCITIESPERPLAYER | GETCITIESPERPLAYER | ||
Line 183: | Line 183: | ||
{|cellspacing="4" cellpadding="0" width="100%" | {|cellspacing="4" cellpadding="0" width="100%" | ||
|- | |- | ||
| [[File: | | [[File:Civ5-16.png|Base game]] || [[File:GK.png|Gods & Kings]] || || || <code style="visibility:hidden;">___________________________</code> | ||
<!-- | <!-- | ||
ISNONE | ISNONE |
Latest revision as of 15:16, 19 September 2012
This page is a part of the Lua and UI Reference (Civ5).
Instance Methods
Methods are functions that belong to an object. Instance methods are invoked through a colon, as in caller:SomeMethod(<args>)
, where caller is an instance of Area.
A colon implictly passes the caller object as the first argument. That is, the former call is equivalent to this one: caller.SomeMethod(caller, <args>)
C
int
|
CalculateTotalBestNatureYield()
| ||||
int
|
CountCoastalLand()
| ||||
int
|
CountNumUniqueResourceTypes()
|
G
int
|
GetCitiesPerPlayer(PlayerID index)
| ||||
int
|
GetFreeSpecialist(PlayerID index)
| ||||
AreaID
|
GetID()
| ||||
int
|
GetNumCities()
| ||||
int
|
GetNumImprovements(ImprovementType improvement)
| ||||
int
|
GetNumOwnedTiles()
| ||||
int
|
GetNumResources(ResourceType resource)
| ||||
int
|
GetNumRevealedTiles(TeamID index)
| ||||
int
|
GetNumRiverEdges()
| ||||
int
|
GetNumStartingPlots()
| ||||
int
|
GetNumTiles()
| ||||
int
|
GetNumTotalResources()
| ||||
int
|
GetNumUnits()
| ||||
int
|
GetNumUnownedTiles()
| ||||
int
|
GetNumUnrevealedTiles(TeamID index)
| ||||
int
|
GetPopulationPerPlayer(PlayerID index)
| ||||
unknown
|
GetTargetCity(PlayerID index)
| ||||
int
|
GetTotalPopulation()
| ||||
int
|
GetUnitsPerPlayer(PlayerID index)
| ||||
int
|
GetYieldRateModifier(PlayerID index1, YieldType index2)
|
I
bool
|
IsNone()
| ||||
bool
|
IsWater()
|
Used by
iterator(AreaID, Area)
|
Map.Areas()
|
Area
|
Map.FindBiggestArea(bool ocean)
|
Area
|
Map.GetArea(AreaID areaID)
|
Area
|
Plot:Area()
|
bool
|
Plot:IsAdjacentToArea(Area area)
|
bool
|
Plot:IsPotentialCityWorkForArea(Area area)
|
int
|
Team:CountEnemyDangerByArea(Area area)
|
int
|
Team:CountNumCitiesByArea(Area area)
|
int
|
Team:CountNumUnitsByArea(Area area)
|
int
|
Team:CountTotalPopulationByArea(Area area)
|
Area
|
Unit:GetArea()
|
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.