CityCollectingGood
(city, good)
|
int
|
|
Returns the amount of a particular good being collected in the city
|
|
CityFoodDelta
(city)
|
int
|
|
Returns the city's net food
|
|
CityHasBuilding
(city, building)
|
int
|
|
Returns true if the city has a building of the given type
|
|
CityIsNamed
(city, string)
|
int
|
|
Returns true if the city is named string
|
|
CityIsValid
(cityvar)
|
int
|
|
Returns true if the city is valid
|
|
CityNameCompare
(city, string_id)
|
int
|
|
Returns true if the city's name equals the string identified by string_id (e.g. BARBARIAN_CITY_1)
|
|
CityStarvationTurns
(city)
|
int
|
|
If the city is starving, returns the int number of turns before a city begins to lose population
|
|
FindCoastalCity
(player, cityvar)
|
int
|
|
Find a city next to the ocean and put it in cityvar
|
|
GetCityByIndex
(player-int, index-int, cityvar)
|
int
|
|
Returns true if the indexed city of the given player exists and stores it into cityvar
|
|
GetCityByLocation
(location, cityvar)
|
int
|
|
Returns true if there is a city at the given location and stores it in cityvar
|
|
GetStoredProduction
(city)
|
int
|
|
Returns how much production a city has stored towards building something.
|
|
GoodCount
(city, type)
|
int
|
|
Returns the number of goods of a particular type in the city's radius
|
|
GoodCountTotal
(city)
|
int
|
|
Returns the number of goods of all types in the city's radius
|
|
GoodVisibutik
(city, type)
|
int
|
|
Doesn't work
|
|
IsBuildingInBuildList
(city, buildingtype)
|
int
|
|
Returns true if the city's build queue contains that type of building
|
|
IsCitySelected
|
int
|
|
Returns true if the player has a city selected
|
|
IsEndgameInBuildList
(city, endgame)
|
int
|
|
Returns true if the city's build queue contains that type of end game object
|
|
IsSpaceCity
(city)
|
int
|
|
Retruns true if the city is in space
|
|
IsUnderseaCity
(city)
|
int
|
|
Returns true if the city is in the ocean
|
|
IsUnitAtHead
(city)
|
int
|
|
Returns -1 if the city is not currently building a unit, otherwise returns the database index of the unit being built
|
|
IsUnitInBuildList
(city, unittype)
|
int
|
|
Returns true if the city's build queue contains that kind of unit
|
|
IsWonderInBuildList
(city, wonder)
|
int
|
|
Returns true if the city's build queue contains that type of wonder
|
|