Cytopia  0.3
A city building simulation game
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TerrainSettings Struct Reference

#include <TerrainGenerator.hxx>

+ Collaboration diagram for TerrainSettings:

Public Attributes

int mapSize = 128
 
int seed = 0
 If the seed is 0, a random seed will be generated by TerrainGenerator::generateTerrain() More...
 
int seaLevel = 3
 All tiles with elevation below this will be set as water. More...
 
int maxHeight = 32
 
int treeDensity = 50
 0% no trees, 100% All trees everywhere all the time. More...
 
int mountainAmplitude
 Both amplifies the mountain noise source, as well as biasing the mountain/plains blend. Expects 0-100. More...
 
int waterAmount = 5
 Density of freshwater in addition to coastlines and rivers. Expects 0-100. More...
 
int coasts
 4 least significant bits are bitmasked, where 0 is a land border and 1 is a coastline. Remaining bits reserved for future use. More...
 
int rivers = 1
 Number of rivers to attempt generating. More...
 
std::string biomes = "{}"
 JSON string of biomes to attempt using, plus any options associated with them. More...
 
std::string advanced = "{}"
 JSON string of arbitrary advanced option data for future use or mods. More...
 

Detailed Description

Definition at line 30 of file TerrainGenerator.hxx.

Member Data Documentation

◆ advanced

std::string TerrainSettings::advanced = "{}"

JSON string of arbitrary advanced option data for future use or mods.

Definition at line 44 of file TerrainGenerator.hxx.

◆ biomes

std::string TerrainSettings::biomes = "{}"

JSON string of biomes to attempt using, plus any options associated with them.

Definition at line 43 of file TerrainGenerator.hxx.

◆ coasts

int TerrainSettings::coasts
Initial value:
=
1

4 least significant bits are bitmasked, where 0 is a land border and 1 is a coastline. Remaining bits reserved for future use.

Definition at line 40 of file TerrainGenerator.hxx.

◆ mapSize

int TerrainSettings::mapSize = 128

Definition at line 32 of file TerrainGenerator.hxx.

◆ maxHeight

int TerrainSettings::maxHeight = 32

Definition at line 35 of file TerrainGenerator.hxx.

◆ mountainAmplitude

int TerrainSettings::mountainAmplitude
Initial value:
=
10

Both amplifies the mountain noise source, as well as biasing the mountain/plains blend. Expects 0-100.

Definition at line 37 of file TerrainGenerator.hxx.

◆ rivers

int TerrainSettings::rivers = 1

Number of rivers to attempt generating.

Definition at line 42 of file TerrainGenerator.hxx.

◆ seaLevel

int TerrainSettings::seaLevel = 3

All tiles with elevation below this will be set as water.

Definition at line 34 of file TerrainGenerator.hxx.

◆ seed

int TerrainSettings::seed = 0

If the seed is 0, a random seed will be generated by TerrainGenerator::generateTerrain()

Definition at line 33 of file TerrainGenerator.hxx.

◆ treeDensity

int TerrainSettings::treeDensity = 50

0% no trees, 100% All trees everywhere all the time.

Definition at line 36 of file TerrainGenerator.hxx.

◆ waterAmount

int TerrainSettings::waterAmount = 5

Density of freshwater in addition to coastlines and rivers. Expects 0-100.

Definition at line 39 of file TerrainGenerator.hxx.


The documentation for this struct was generated from the following file: