This page is a part of the Lua and UI Reference (Civ5).
|
This object is defined in the following Lua source file: Amazon_XP.lua.
- To import it, use:
include("Amazon_XP")
|
Static Methods
Methods are functions that belong to an object. Static methods are invoked through a dot, as in AssignStartingPlots.SomeMethod(<args>)
. When a dot is used the caller object is not implicitly provided as the first argument.
|
|
|
|
___________________________
|
|
|
|
|
unknown
|
Create()
|
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 AssignStartingPlots.
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
|
|
|
|
___________________________
|
|
|
|
|
|
()
|
|
|
|
|
|
AddModernMinorStrategicsToCityStates()
|
|
|
|
|
|
AddStrategicBalanceResources(int region_number)
|
|
|
|
|
int, int
|
ApplyHexAdjustment(int x, int y, table(int => int) plot_adjustments)
|
|
|
|
|
|
AssignCityStatesToRegionsOrToUninhabited(unknown args)
|
|
|
|
|
|
AssignLuxuryRoles
|
|
|
|
|
ResourceType
|
AssignLuxuryToRegion(PlayerID region_number)
|
|
|
|
|
bool, int
|
AttemptToPlaceBonusResourceAtPlot(int x, int y, bool allowOasis)
|
|
|
|
|
bool
|
AttemptToPlaceHillsAtPlot(int x, int y)
|
|
|
|
|
bool
|
AttemptToPlaceNaturalWonder(int wonder_number, int row_number)
|
|
|
|
|
bool
|
AttemptToPlaceSmallStrategicAtPlot(int x, int y)
|
|
|
|
|
bool
|
AttemptToPlaceStoneAtGrassPlot(int x, int y)
|
B
C
|
|
|
|
___________________________
|
|
|
|
|
|
CanBeCrater(int x, int y)
|
|
|
|
|
|
CanBeFuji(int x, int y)
|
|
|
|
|
|
CanBeGeyser(int x, int y)
|
|
|
|
|
|
CanBeGibraltar(int x, int y)
|
|
|
|
|
|
CanBeKrakatoa(int x, int y)
|
|
|
|
|
|
CanBeMesa(int x, int y)
|
|
|
|
|
|
CanBeMtSinai(int x, int y)
|
|
|
|
|
|
CanBeRareMystical(int x, int y)
|
|
|
|
|
|
CanBeReef(int x, int y)
|
|
|
|
|
|
CanBeThisNaturalWonderType(int x, int y, int wn, int rn)
|
|
|
|
|
bool
|
CanPlaceCityStateAt(int x, int y, AreaID area_ID, int force_it, int ignore_collisions)
|
|
|
|
|
|
ChooseLocations(int args)
|
|
|
|
|
unknown
|
ChopIntoThreeRegions(unknown fertility_table, table rectangle_data_table, bool taller, unknown chopPercent = nil)
|
|
|
|
|
unknown
|
ChopIntoTwoRegions(unknown fertility_table, table rectangle_data_table, bool taller, float chopPercent)
|
|
|
|
|
unknown, int, int, int
|
CustomOverride(ResourceType resource_)
|
D
E
F
G
|
|
|
|
___________________________
|
|
|
|
|
|
GenerateGlobalResourcePlotLists
|
|
|
|
|
|
GenerateLocalVersionsOfDataFromXML()
|
|
|
|
|
unknown
|
GenerateLuxuryPlotListsAtCitySite(int x, int y, int radius, bool removeFeatureIce)
|
|
|
|
|
unknown
|
GenerateLuxuryPlotListsInRegion(PlayerID region_number)
|
|
|
|
|
table(int => int)
|
GenerateNaturalWondersCandidatePlotLists()
|
|
|
|
|
|
GenerateRegions(int args)
|
|
|
|
|
|
GetCityStateLuxuriesTargetNumber
|
|
|
|
|
unknown
|
GetDisabledLuxuriesTargetNumber()
|
|
|
|
|
int, int, int, int
|
GetIndicesForLuxuryType(ResourceType resource_)
|
|
|
|
|
unknown
|
GetListOfAllowableLuxuriesAtCitySite(int x, int y, int radius)
|
|
|
|
|
int
|
GetLuxuriesSplitCap()
|
|
|
|
|
ResourceType, ResourceType, ResourceType, ResourceType, ResourceType, ResourceType
|
GetMajorStrategicResourceQuantityValues()
|
|
|
|
|
unknown
|
GetRegionLuxuryTargetNumbers()
|
|
|
|
|
ResourceType, ResourceType, ResourceType, ResourceType, ResourceType, ResourceType
|
GetSmallStrategicResourceQuantityValues()
|
|
|
|
|
unknown
|
GetWorldLuxuryTargetNumbers()
|
I
M
|
|
|
|
___________________________
|
|
|
|
|
unknown
|
MeasureSinglePlot(int x, int y, int region_type)
|
|
|
|
|
unknown, int, int
|
MeasureStartPlacementFertilityInRectangle(int westX, int southY, int width, int height)
|
|
|
|
|
unknown, AreaID, AreaID
|
MeasureStartPlacementFertilityOfLandmass(AreaID areaID, AreaID westX, int eastX, AreaID southY, int northY, bool wrapsX, bool wrapsY)
|
|
|
|
|
int
|
MeasureStartPlacementFertilityOfPlot(int x, int y, bool checkForCoastalLand)
|
|
|
|
|
|
MeasureTerrainInRegions()
|
N
O
|
|
|
|
___________________________
|
|
|
|
|
table(int => int), table(int => int), unknown, unknown, unknown, unknown, unknown
|
ObtainNextSectionInRegion(int incoming_west_x, int incoming_south_y, int incoming_width, int incoming_height, AreaID areaID, int force_it, int ignore_collisions)
|
P
|
|
|
|
___________________________
|
|
|
|
|
int, int, bool
|
PlaceCityState(table(int => int) coastal_plot_list, table(int => int) inland_plot_list, bool check_proximity, bool check_collision)
|
|
|
|
|
|
PlaceCityStateInRegion(int city_state_number, PlayerID region_number)
|
|
|
|
|
|
PlaceCityStates
|
|
|
|
|
|
PlaceFish(int frequency, table(int => PlayerID) plot_list)
|
|
|
|
|
|
PlaceImpactAndRipples(int x, int y)
|
|
|
|
|
|
PlaceLuxuries
|
|
|
|
|
|
PlaceMarble()
|
|
|
|
|
|
PlaceNaturalWonders
|
|
|
|
|
|
PlaceOilInTheSea()
|
|
|
|
|
|
PlaceResourceImpact(int x, int y, int impact_table_number, int radius)
|
|
|
|
|
|
PlaceResourcesAndCityStates
|
|
|
|
|
|
PlaceSexyBonusAtCivStarts()
|
|
|
|
|
|
PlaceSmallQuantitiesOfStrategics(int frequency, table(int => int) plot_list)
|
|
|
|
|
int
|
PlaceSpecificNumberOfResources(ResourceType resource_, ResourceType quantity, int amount, float ratio, int impact_table_number, int min_radius, int max_radius, table(int => PlayerID) plot_list)
|
|
|
|
|
|
PlaceStrategicAndBonusResources
|
|
|
|
|
|
PrintFinalResourceTotalsToLog
|
|
|
|
|
|
ProcessResourceList(int frequency, int impact_table_number, table(int => int) plot_list, table(int => table(int => ResourceType)) resources_to_place)
|
R
|
|
|
|
___________________________
|
|
|
|
|
table(int => int), int, int, int, int
|
RemoveDeadRows(table(int => int) fertility_table, int westX, int southY, int width, int height)
|
S
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.