 |
Cytopia
0.3
A city building simulation game
|
Go to the documentation of this file. 1 #ifndef TERRAIN_GEN_HXX_
2 #define TERRAIN_GEN_HXX_
4 #include "../GameObjects/MapNode.hxx"
53 void generateTerrain(std::vector<MapNode> &mapNodes, std::vector<MapNode *> &mapNodesInDrawingOrder);
std::vector< std::string > bushesLight
Bushes Light IDs.
std::vector< std::string > terrain
Terrain IDs.
std::vector< std::string > treesMedium
Trees Medium IDs.
int mountainAmplitude
Both amplifies the mountain noise source, as well as biasing the mountain/plains blend....
int seed
If the seed is 0, a random seed will be generated by TerrainGenerator::generateTerrain()
int rivers
Number of rivers to attempt generating.
std::vector< std::string > treesDense
Trees Dense IDs.
std::string biomes
JSON string of biomes to attempt using, plus any options associated with them.
std::vector< std::string > waterFloraLight
Water Flora Light IDs.
int waterAmount
Density of freshwater in addition to coastlines and rivers. Expects 0-100.
int treeDensity
0% no trees, 100% All trees everywhere all the time.
void generateTerrain(std::vector< MapNode > &mapNodes, std::vector< MapNode * > &mapNodesInDrawingOrder)
std::vector< Point > m_riverSourceNodes
std::vector< std::string > terrainRocks
Terrain Rocks IDs.
std::vector< std::string > water
Water IDs.
std::vector< std::string > treesLight
Trees Light IDs.
std::map< std::string, BiomeData > m_biomeInformation
key: biome
std::vector< std::string > waterDecoration
Water Decoration IDs.
void generateRiver(std::vector< MapNode > &mapNodes)
std::vector< std::string > terrainFloraDense
Terrain Flora (Flowers) Dense IDs.
TerrainSettings m_terrainSettings
std::vector< std::string > waterFloraMedium
Water Flora Medium IDs.
TerrainGenerator()=default
void loadTerrainDataFromJSON()
int coasts
4 least significant bits are bitmasked, where 0 is a land border and 1 is a coastline....
std::vector< std::string > bushesMedium
Bushes Medium IDs.
std::vector< std::string > terrainDecoration
Terrain Decoration IDs.
std::string advanced
JSON string of arbitrary advanced option data for future use or mods.
std::vector< std::string > terrainFloraMedium
Terrain Flora (Flowers) Medium IDs.
int seaLevel
All tiles with elevation below this will be set as water.
std::vector< std::string > terrainFloraLight
Terrain Flora (Flowers) Light IDs.
~TerrainGenerator()=default
std::vector< std::string > waterFloraDense
Water Flora Dense IDs.
std::vector< std::string > bushesDense
Bushes Dense IDs.