City (Civ5 Type): Difference between revisions
(Bot update) |
(→U) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 2,560: | Line 2,560: | ||
{|cellspacing="4" cellpadding="0" width="100%" | {|cellspacing="4" cellpadding="0" width="100%" | ||
|- | |- | ||
| | | | ||
<!-- | <!-- | ||
UPDATESTRENGTHVALUE | UPDATESTRENGTHVALUE | ||
--> | --> | ||
{{FuncInfos5|no |yesNeverUsed|no |<!-- No comment -->}} | |||
{{FuncInfos5| | |||
|align="right" |<code>{{UnknownSignature5}}</code> | |align="right" |<code>{{UnknownSignature5}}</code> | ||
|width="100%" |<code>{{FuncLabel5|City|UpdateStrengthValue}}<!-- No arguments --></code> | |width="100%" |<code>{{FuncLabel5|City|UpdateStrengthValue}}<!-- No arguments --></code> | ||
Line 2,578: | Line 2,577: | ||
--> | --> | ||
|- | |- | ||
{{FuncInfos5| | {{FuncInfos5|no |yesNeverUsed|no |<!-- No comment -->}} | ||
|align="right" |<code>{{UnknownSignature5}}</code> | |align="right" |<code>{{UnknownSignature5}}</code> | ||
|width="100%" |<code>{{FuncLabel5|City|WaterArea}}<!-- No arguments --></code> | |width="100%" |<code>{{FuncLabel5|City|WaterArea}}<!-- No arguments --></code> | ||
|} | |} | ||
=Used by= | =Used by= |
Latest revision as of 16:48, 6 January 2014
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 City.
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>)
A
|
AddProductionExperience(Unit unit, bool conscript = false)
| ||||
|
AdoptReligionFully(ReligionType religion)
| ||||
UnitType
|
AllUpgradesAvailable(UnitType unit, int upgradeCount = 0)
| ||||
|
AlterWorkingPlot(CityPlotID plotIndex)
| ||||
|
Area
| ||||
bool
|
At(int x, int y)
| ||||
bool
|
AtPlot(Plot plot)
|
C
D
|
DoJONSCultureLevelIncrease
| ||||
bool
|
DoPickResourceDemanded()
| ||||
int
|
DoReallocateCitizens()
| ||||
|
DoTask(TaskType task, int data1, int data2, bool option)
| ||||
int
|
DoVerifyWorkingPlots()
|
F
int
|
FindBaseYieldRateRank(YieldType yield)
| ||||
int
|
FindPopulationRank()
| ||||
int
|
FindYieldRateRank(YieldType yield)
| ||||
int
|
FoodConsumption(bool noAngry, int extra)
| ||||
int
|
FoodDifference(bool bottom)
| ||||
int
|
FoodDifferenceTimes100(bool bottom)
|
G
H
bool
|
HasPerformedRangedStrikeThisTurn()
| ||||
|
Hurry(HurryType hurry)
| ||||
int
|
HurryCost(HurryType hurry, bool extra)
| ||||
int
|
HurryGold(HurryType hurry)
| ||||
int
|
HurryPopulation(HurryType hurry)
| ||||
int
|
HurryProduction(HurryType hurry)
|
I
K
|
Kill
|
M
int
|
MaxHurryPopulation()
|
P
Plot
|
Plot()
| ||||
|
PopOrder(int num, bool finish, bool choose)
| ||||
int
|
ProductionLeft()
| ||||
|
PushOrder(OrderType order, int data1, int data2, bool save, bool pop, bool append, bool force)
|
R
int
|
RangeCombatDamage(Unit theirUnit, unknown arg1)
| ||||
int
|
RangeCombatUnitDefense(Unit theirUnit)
|
S
U
|
UpdateStrengthValue
|
W
|
WaterArea
|
Used by
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.