MapGenerator
Types
Functions
applyHumidityAndTemperature
Link copied to clipboard
MapParameters.tilesPerBiomeArea to set biomes size MapParameters.temperatureExtremeness to favor very high and very low temperatures
cellularHills
Link copied to clipboard
private fun cellularHills(tileMap: TileMap, mountain: String?, hill: String)
Content copied to clipboard
cellularMountainRanges
Link copied to clipboard
private fun cellularMountainRanges(tileMap: TileMap, mountain: String, hill: String?, flat: String)
Content copied to clipboard
generateMap
Link copied to clipboard
fun generateMap(mapParameters: MapParameters, civilizations: List<CivilizationInfo> = emptyList()): TileMap
Content copied to clipboard
raiseMountainsAndHills
Link copied to clipboard
MapParameters.elevationExponent favors high elevation
runAndMeasure
Link copied to clipboard
spawnIce
Link copied to clipboard
spawnLakesAndCoasts
Link copied to clipboard
spawnRareFeatures
Link copied to clipboard
MapParameters.rareFeaturesRichness is the probability of spawning a rare feature
spawnVegetation
Link copied to clipboard
MapParameters.vegetationRichness is the threshold for vegetation spawn
spreadAncientRuins
Link copied to clipboard
spreadResources
Link copied to clipboard
private fun spreadResources(tileMap: TileMap, mapRadius: Int, resourceType: ResourceType)
Content copied to clipboard
Spreads resources of type resourceType picking locations at a minimum distance from each other, which is determined from mapRadius and then tuned down until the desired number fits. MapParameters.resourceRichness used to control how many resources to spawn.
spreadStrategicResources
Link copied to clipboard
Properties
Sources
jvm source
Link copied to clipboard