22#define BIOME_NONE ((biome_t)0)
119 return y ==
S16_MIN ? y : (y - 1);
142 np_heat(50, 50,
v3f(1000.0, 1000.0, 1000.0), 5349, 3, 0.5, 2.0),
143 np_humidity(50, 50,
v3f(1000.0, 1000.0, 1000.0), 842, 3, 0.5, 2.0),
240 virtual void clear();
u16 biome_t
Definition cavegen.h:10
Definition mg_biome.h:158
Biome * calcBiomeAtPoint(v3s16 pos) const
Definition mg_biome.cpp:186
Noise * noise_heat_blend
Definition mg_biome.h:190
virtual ~BiomeGenOriginal()
Definition mg_biome.cpp:152
BiomeGenOriginal(BiomeManager *biomemgr, const BiomeParamsOriginal *params, v3s16 chunksize)
Definition mg_biome.cpp:112
float * humidmap
Definition mg_biome.h:183
s16 getNextTransitionY(s16 y) const
Definition mg_biome.cpp:162
Noise * noise_humidity
Definition mg_biome.h:189
BiomeGen * clone(BiomeManager *biomemgr) const
Definition mg_biome.cpp:169
Biome * getBiomeAtIndex(size_t index, v3s16 pos) const
Definition mg_biome.cpp:233
float calcHeatAtPoint(v3s16 pos) const
Definition mg_biome.cpp:174
Biome * calcBiomeFromNoise(float heat, float humidity, v3s16 pos) const
Definition mg_biome.cpp:242
Noise * noise_humidity_blend
Definition mg_biome.h:191
float * heatmap
Definition mg_biome.h:182
const BiomeParamsOriginal * m_params
Definition mg_biome.h:186
biome_t * getBiomes(s16 *heightmap, v3s16 pmin)
Definition mg_biome.cpp:208
float calcHumidityAtPoint(v3s16 pos) const
Definition mg_biome.cpp:180
std::vector< s16 > m_transitions_y
Definition mg_biome.h:194
BiomeGenType getType() const
Definition mg_biome.h:164
Noise * noise_heat
Definition mg_biome.h:188
Biome * getBiomeAtPoint(v3s16 pos) const
Definition mg_biome.cpp:225
void calcBiomeNoise(v3s16 pmin)
Definition mg_biome.cpp:192
biome_t * biomemap
Definition mg_biome.h:123
v3s16 m_csize
Definition mg_biome.h:128
virtual BiomeGen * clone(BiomeManager *biomemgr) const =0
virtual Biome * calcBiomeAtPoint(v3s16 pos) const =0
void assertChunkSize(v3s16 expect) const
Definition mg_biome.h:89
virtual biome_t * getBiomes(s16 *heightmap, v3s16 pmin)=0
virtual BiomeGenType getType() const =0
virtual s16 getNextTransitionY(s16 y) const
Definition mg_biome.h:118
virtual ~BiomeGen()=default
BiomeManager * m_bmgr
Definition mg_biome.h:126
virtual void calcBiomeNoise(v3s16 pmin)=0
v3s16 m_pmin
Definition mg_biome.h:127
virtual Biome * getBiomeAtIndex(size_t index, v3s16 pos) const =0
virtual Biome * getBiomeAtPoint(v3s16 pos) const =0
Definition mg_biome.h:202
virtual ~BiomeManager()=default
BiomeManager * clone() const
Definition mg_biome.cpp:81
BiomeManager()
Definition mg_biome.h:243
Server * m_server
Definition mg_biome.h:245
static BiomeParams * createBiomeParams(BiomeGenType type)
Definition mg_biome.h:230
BiomeGen * createBiomeGen(BiomeGenType type, BiomeParams *params, v3s16 chunksize)
Definition mg_biome.h:219
static Biome * create(BiomeType type)
Definition mg_biome.h:214
virtual void clear()
Definition mg_biome.cpp:62
const char * getObjectTitle() const
Definition mg_biome.h:209
content_t c_dungeon
Definition mg_biome.h:43
float heat_point
Definition mg_biome.h:54
ObjDef * clone() const
Definition mg_biome.cpp:293
s16 depth_filler
Definition mg_biome.h:48
u32 flags
Definition mg_biome.h:32
s16 depth_top
Definition mg_biome.h:47
content_t c_top
Definition mg_biome.h:34
std::vector< content_t > c_cave_liquid
Definition mg_biome.h:42
virtual void resolveNodeNames()
Definition mg_biome.cpp:328
content_t c_filler
Definition mg_biome.h:35
content_t c_water_top
Definition mg_biome.h:37
s16 depth_riverbed
Definition mg_biome.h:50
v3s16 min_pos
Definition mg_biome.h:52
content_t c_dungeon_stair
Definition mg_biome.h:45
content_t c_stone
Definition mg_biome.h:36
s16 depth_water_top
Definition mg_biome.h:49
content_t c_riverbed
Definition mg_biome.h:40
content_t c_water
Definition mg_biome.h:38
v3s16 max_pos
Definition mg_biome.h:53
content_t c_dust
Definition mg_biome.h:41
s16 vertical_blend
Definition mg_biome.h:56
float humidity_point
Definition mg_biome.h:55
content_t c_river_water
Definition mg_biome.h:39
content_t c_dungeon_alt
Definition mg_biome.h:44
Definition settings.h:109
#define FATAL_ERROR_IF(expr, msg)
Definition debug.h:36
static const char * settings[]
Definition fontengine.cpp:27
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13
core::vector3df v3f
Definition irr_v3d.h:11
#define S16_MIN
Definition irrlichttypes.h:18
u16 content_t
Definition mapnode.h:22
BiomeGenType
Definition mg_biome.h:66
@ BIOMEGEN_ORIGINAL
Definition mg_biome.h:67
BiomeType
Definition mg_biome.h:24
@ BIOMETYPE_NORMAL
Definition mg_biome.h:25
u16 biome_t
Definition mg_biome.h:20
Definition activeobjectmgr.cpp:11
Definition mg_biome.h:140
NoiseParams np_heat
Definition mg_biome.h:152
NoiseParams np_humidity
Definition mg_biome.h:153
NoiseParams np_humidity_blend
Definition mg_biome.h:155
virtual void readParams(const Settings *settings)
Definition mg_biome.cpp:92
BiomeParamsOriginal()
Definition mg_biome.h:141
NoiseParams np_heat_blend
Definition mg_biome.h:154
virtual void writeParams(Settings *settings) const
Definition mg_biome.cpp:101
virtual void readParams(const Settings *settings)=0
s32 seed
Definition mg_biome.h:75
virtual ~BiomeParams()=default
virtual void writeParams(Settings *settings) const =0