#include <BioGen.h>
|
void | AddRivers (cChunkCoords a_ChunkCoords, cChunkDef::BiomeMap &a_BiomeMap) |
| Step 2: Add rivers to the land Flips some "-1" biomes into biRiver. More...
|
|
void | ApplyTemperatureHumidity (cChunkCoords a_ChunkCoords, cChunkDef::BiomeMap &a_BiomeMap) |
| Step 3: Decide land biomes using a temperature / humidity map; freeze ocean / river in low temperatures. More...
|
|
void | BuildTemperatureHumidityMaps (cChunkCoords a_ChunkCoords, IntMap &a_TemperatureMap, IntMap &a_HumidityMap) |
| Builds two Perlin-noise maps, one for temperature, the other for humidity. More...
|
|
void | DecideLandBiomes (cChunkDef::BiomeMap &a_BiomeMap, const IntMap &a_TemperatureMap, const IntMap &a_HumidityMap) |
| Flips all remaining "-1" biomes into land biomes using the two maps. More...
|
|
void | DecideOceanLandMushroom (cChunkCoords a_ChunkCoords, cChunkDef::BiomeMap &a_BiomeMap) |
| Step 1: Decides between ocean, land and mushroom, using a DistVoronoi with special conditions and post-processing for mushroom islands Sets biomes to biOcean, -1 (i.e. More...
|
|
void | Distort (int a_BlockX, int a_BlockZ, int &a_DistortedX, int &a_DistortedZ, int a_CellSize) |
| Distorts the coords using a Perlin-like noise, with a specified cell-size. More...
|
|
void | FreezeWaterBiomes (cChunkDef::BiomeMap &a_BiomeMap, const IntMap &a_TemperatureMap) |
| Flips biOcean and biRiver into biFrozenOcean and biFrozenRiver if the temperature is too low. More...
|
|
virtual void | GenBiomes (cChunkCoords a_ChunkCoords, cChunkDef::BiomeMap &a_BiomeMap) override |
| Generates biomes for the given chunk. More...
|
|
virtual void | InitializeBiomeGen (cIniFile &a_IniFile) override |
| Reads parameters from the ini file, prepares generator for use. More...
|
|
|
static std::unique_ptr< cBiomeGen > | CreateBiomeGen (cIniFile &a_IniFile, int a_Seed, bool &a_CacheOffByDefault) |
| Creates the correct BiomeGen descendant based on the ini file settings. More...
|
|
Definition at line 224 of file BioGen.h.
◆ DblMap
typedef double cBioGenMultiStepMap::DblMap[17 *17] |
|
protected |
◆ IntMap
typedef int cBioGenMultiStepMap::IntMap[17 *17] |
|
protected |
◆ Super
◆ cBioGenMultiStepMap()
cBioGenMultiStepMap::cBioGenMultiStepMap |
( |
int |
a_Seed | ) |
|
◆ AddRivers()
Step 2: Add rivers to the land Flips some "-1" biomes into biRiver.
Definition at line 544 of file BioGen.cpp.
◆ ApplyTemperatureHumidity()
Step 3: Decide land biomes using a temperature / humidity map; freeze ocean / river in low temperatures.
Flips all remaining "-1" biomes into land biomes. Also flips some biOcean and biRiver into biFrozenOcean, biFrozenRiver, based on temp map.
Definition at line 575 of file BioGen.cpp.
◆ BuildTemperatureHumidityMaps()
void cBioGenMultiStepMap::BuildTemperatureHumidityMaps |
( |
cChunkCoords |
a_ChunkCoords, |
|
|
IntMap & |
a_TemperatureMap, |
|
|
IntMap & |
a_HumidityMap |
|
) |
| |
|
protected |
Builds two Perlin-noise maps, one for temperature, the other for humidity.
Trims both into [0..255] range
Definition at line 606 of file BioGen.cpp.
◆ DecideLandBiomes()
Flips all remaining "-1" biomes into land biomes using the two maps.
Definition at line 644 of file BioGen.cpp.
◆ DecideOceanLandMushroom()
Step 1: Decides between ocean, land and mushroom, using a DistVoronoi with special conditions and post-processing for mushroom islands Sets biomes to biOcean, -1 (i.e.
land), biMushroomIsland or biMushroomShore.
Definition at line 441 of file BioGen.cpp.
◆ Distort()
void cBioGenMultiStepMap::Distort |
( |
int |
a_BlockX, |
|
|
int |
a_BlockZ, |
|
|
int & |
a_DistortedX, |
|
|
int & |
a_DistortedZ, |
|
|
int |
a_CellSize |
|
) |
| |
|
protected |
Distorts the coords using a Perlin-like noise, with a specified cell-size.
Definition at line 589 of file BioGen.cpp.
◆ FreezeWaterBiomes()
Flips biOcean and biRiver into biFrozenOcean and biFrozenRiver if the temperature is too low.
Definition at line 688 of file BioGen.cpp.
◆ GenBiomes()
◆ InitializeBiomeGen()
void cBioGenMultiStepMap::InitializeBiomeGen |
( |
cIniFile & |
a_IniFile | ) |
|
|
overrideprotectedvirtual |
Reads parameters from the ini file, prepares generator for use.
Reimplemented from cBiomeGen.
Definition at line 417 of file BioGen.cpp.
◆ m_LandBiomesSize
float cBioGenMultiStepMap::m_LandBiomesSize |
|
protected |
◆ m_MushroomIslandSize
int cBioGenMultiStepMap::m_MushroomIslandSize |
|
protected |
◆ m_Noise1
cNoise cBioGenMultiStepMap::m_Noise1 |
|
protected |
◆ m_Noise2
cNoise cBioGenMultiStepMap::m_Noise2 |
|
protected |
◆ m_Noise3
cNoise cBioGenMultiStepMap::m_Noise3 |
|
protected |
◆ m_Noise4
cNoise cBioGenMultiStepMap::m_Noise4 |
|
protected |
◆ m_Noise5
cNoise cBioGenMultiStepMap::m_Noise5 |
|
protected |
◆ m_Noise6
cNoise cBioGenMultiStepMap::m_Noise6 |
|
protected |
◆ m_OceanCellSize
int cBioGenMultiStepMap::m_OceanCellSize |
|
protected |
◆ m_RiverCellSize
int cBioGenMultiStepMap::m_RiverCellSize |
|
protected |
◆ m_RiverWidthThreshold
double cBioGenMultiStepMap::m_RiverWidthThreshold |
|
protected |
◆ m_Seed
int cBioGenMultiStepMap::m_Seed |
|
protected |
The documentation for this class was generated from the following files: