AssignStartingPlots (Civ5 Type)

From Civilization Modding Wiki
Jump to navigationJump to search

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.

Base game Gods & Kings ___________________________
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>)

_

Base game Gods & Kings ___________________________
__CustomInit()
__Init()
__InitLuxuryWeights()

A

Base game Gods & Kings ___________________________
AddExtraBonusesToHillsRegions()
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

Base game Gods & Kings ___________________________
BalanceAndAssign

C

Base game Gods & Kings ___________________________
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

Base game Gods & Kings ___________________________
DetermineRegionTypes()
DivideBritain(int numDivisions, unknown fertility_table, int rectangle_data_table)
DivideIntoRegions(int numDivisions, unknown fertility_table, table rectangle_data_table)

E

Base game Gods & Kings ___________________________
int, bool EvaluateCandidatePlot(int plotIndex, int region_type)
bool ExamineCandidatePlotForNaturalWondersEligibility(int x, int y)
bool ExaminePlotForNaturalWondersEligibility(int x, int y)

F

Base game Gods & Kings ___________________________
bool, bool FindCoastalStart(int region_number)
int FindFallbackForUnmatchedRegionPriority(int regionType, table(int => PlayerID) regions_still_available)
bool, bool FindStart(int region_number)
bool, bool FindStartWithoutRegardToAreaID(int region_number, bool mustBeCoast)
FixSugarJungles

G

Base game Gods & Kings ___________________________
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

Base game Gods & Kings ___________________________
IdentifyRegionsOfThisType(int region_type)
unknown IterateThroughCandidatePlotList(table(int => int) plot_list, int region_type)

M

Base game Gods & Kings ___________________________
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

Base game Gods & Kings ___________________________
NormalizeCityState(int x, int y)
NormalizeCityStateLocations
NormalizeStartLocation(int region_number)
NormalizeTeamLocations()

O

Base game Gods & Kings ___________________________
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

Base game Gods & Kings ___________________________
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

Base game Gods & Kings ___________________________
table(int => int), int, int, int, int RemoveDeadRows(table(int => int) fertility_table, int westX, int southY, int width, int height)

S

Base game Gods & Kings ___________________________
SortRegionsByType()



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.