#include <mg_biome.h>
Public Member Functions | |
BiomeGenOriginal (BiomeManager *biomemgr, const BiomeParamsOriginal *params, v3s16 chunksize) | |
virtual | ~BiomeGenOriginal () |
BiomeGenType | getType () const |
BiomeGen * | clone (BiomeManager *biomemgr) const |
float | calcHeatAtPoint (v3s16 pos) const |
float | calcHumidityAtPoint (v3s16 pos) const |
Biome * | calcBiomeAtPoint (v3s16 pos) const |
void | calcBiomeNoise (v3s16 pmin) |
biome_t * | getBiomes (s16 *heightmap, v3s16 pmin) |
Biome * | getBiomeAtPoint (v3s16 pos) const |
Biome * | getBiomeAtIndex (size_t index, v3s16 pos) const |
Biome * | calcBiomeFromNoise (float heat, float humidity, v3s16 pos) const |
s16 | getNextTransitionY (s16 y) const |
Public Member Functions inherited from BiomeGen | |
virtual | ~BiomeGen ()=default |
void | assertChunkSize (v3s16 expect) const |
Public Attributes | |
float * | heatmap |
float * | humidmap |
Public Attributes inherited from BiomeGen | |
biome_t * | biomemap = nullptr |
Private Attributes | |
const BiomeParamsOriginal * | m_params |
Noise * | noise_heat |
Noise * | noise_humidity |
Noise * | noise_heat_blend |
Noise * | noise_humidity_blend |
std::vector< s16 > | m_transitions_y |
Additional Inherited Members | |
Protected Attributes inherited from BiomeGen | |
BiomeManager * | m_bmgr = nullptr |
v3s16 | m_pmin |
v3s16 | m_csize |
BiomeGenOriginal::BiomeGenOriginal | ( | BiomeManager * | biomemgr, |
const BiomeParamsOriginal * | params, | ||
v3s16 | chunksize ) |
References BiomeGen::biomemap, ObjDefManager::getNumObjects(), ObjDefManager::getRaw(), heatmap, humidmap, BiomeGen::m_bmgr, BiomeGen::m_csize, m_params, m_transitions_y, Biome::max_pos, Biome::min_pos, noise_heat, noise_heat_blend, noise_humidity, noise_humidity_blend, BiomeParamsOriginal::np_heat, BiomeParamsOriginal::np_heat_blend, BiomeParamsOriginal::np_humidity, BiomeParamsOriginal::np_humidity_blend, Noise::result, and BiomeParams::seed.
Referenced by clone().
|
virtual |
References BiomeGen::biomemap, noise_heat, noise_heat_blend, noise_humidity, and noise_humidity_blend.
Implements BiomeGen.
References calcBiomeFromNoise(), calcHeatAtPoint(), and calcHumidityAtPoint().
References BIOME_NONE, ObjDefManager::getNumObjects(), ObjDefManager::getRaw(), Biome::heat_point, Biome::humidity_point, BiomeGen::m_bmgr, Biome::max_pos, Biome::min_pos, PcgRandom::range(), and Biome::vertical_blend.
Referenced by calcBiomeAtPoint(), getBiomeAtIndex(), and getBiomes().
|
virtual |
Implements BiomeGen.
References BiomeGen::m_csize, BiomeGen::m_pmin, noise_heat, noise_heat_blend, noise_humidity, noise_humidity_blend, Noise::perlinMap2D(), and Noise::result.
Referenced by MapgenValleys::makeChunk().
float BiomeGenOriginal::calcHeatAtPoint | ( | v3s16 | pos | ) | const |
References m_params, NoisePerlin2D(), BiomeParamsOriginal::np_heat, BiomeParamsOriginal::np_heat_blend, and BiomeParams::seed.
Referenced by calcBiomeAtPoint().
float BiomeGenOriginal::calcHumidityAtPoint | ( | v3s16 | pos | ) | const |
References m_params, NoisePerlin2D(), BiomeParamsOriginal::np_humidity, BiomeParamsOriginal::np_humidity_blend, and BiomeParams::seed.
Referenced by calcBiomeAtPoint().
|
virtual |
Implements BiomeGen.
References BiomeGenOriginal(), BiomeGen::m_csize, and m_params.
Implements BiomeGen.
References calcBiomeFromNoise(), noise_heat, noise_humidity, and Noise::result.
Referenced by getBiomeAtPoint().
Implements BiomeGen.
References getBiomeAtIndex(), BiomeGen::m_csize, and BiomeGen::m_pmin.
Implements BiomeGen.
References BiomeGen::biomemap, calcBiomeFromNoise(), ObjDef::index, BiomeGen::m_csize, noise_heat, noise_humidity, and Noise::result.
|
virtual |
Reimplemented from BiomeGen.
References m_transitions_y, and S16_MIN.
|
inlinevirtual |
Implements BiomeGen.
References BIOMEGEN_ORIGINAL.
float* BiomeGenOriginal::heatmap |
Referenced by BiomeGenOriginal(), MapgenValleys::generateTerrain(), and ModApiMapgen::l_get_mapgen_object().
float* BiomeGenOriginal::humidmap |
Referenced by BiomeGenOriginal(), MapgenValleys::generateTerrain(), and ModApiMapgen::l_get_mapgen_object().
|
private |
Referenced by BiomeGenOriginal(), calcHeatAtPoint(), calcHumidityAtPoint(), and clone().
|
private |
Referenced by BiomeGenOriginal(), and getNextTransitionY().
|
private |
Referenced by BiomeGenOriginal(), ~BiomeGenOriginal(), calcBiomeNoise(), getBiomeAtIndex(), and getBiomes().
|
private |
Referenced by BiomeGenOriginal(), ~BiomeGenOriginal(), and calcBiomeNoise().
|
private |
Referenced by BiomeGenOriginal(), ~BiomeGenOriginal(), calcBiomeNoise(), getBiomeAtIndex(), and getBiomes().
|
private |
Referenced by BiomeGenOriginal(), ~BiomeGenOriginal(), and calcBiomeNoise().