8#define VMANIP_FLAG_CAVE VOXELFLAG_CHECKED1
63 NoiseParams *np_cavern, s32 seed,
float cavern_limit,
64 float cavern_taper,
float cavern_threshold);
159 bool is_large_cave,
int max_stone_height, s16 *
heightmap);
234 void carveRoute(
v3f vec,
float f,
bool randomize_xz,
bool tunnel_above_ground);
u16 biome_t
Definition cavegen.h:10
Definition mg_biome.h:203
u16 m_zstride_1d
Definition cavegen.h:80
float m_cavern_threshold
Definition cavegen.h:76
bool generateCaverns(MMVManip *vm, v3s16 nmin, v3s16 nmax)
Definition cavegen.cpp:216
v3s16 m_csize
Definition cavegen.h:73
u16 m_ystride
Definition cavegen.h:79
content_t c_lava_source
Definition cavegen.h:85
content_t c_water_source
Definition cavegen.h:84
~CavernsNoise()
Definition cavegen.cpp:210
const NodeDefManager * m_ndef
Definition cavegen.h:70
float m_cavern_limit
Definition cavegen.h:74
Noise * noise_cavern
Definition cavegen.h:82
float m_cavern_taper
Definition cavegen.h:75
CavernsNoise(const NodeDefManager *nodedef, v3s16 chunksize, NoiseParams *np_cavern, s32 seed, float cavern_limit, float cavern_taper, float cavern_threshold)
Definition cavegen.cpp:179
float m_cave_width
Definition cavegen.h:46
BiomeGen * m_bmgn
Definition cavegen.h:42
Noise * noise_cave2
Definition cavegen.h:53
BiomeManager * m_bmgr
Definition cavegen.h:40
CavesNoiseIntersection(const NodeDefManager *nodedef, BiomeManager *biomemgr, BiomeGen *biomegen, v3s16 chunksize, NoiseParams *np_cave1, NoiseParams *np_cave2, s32 seed, float cave_width)
Definition cavegen.cpp:25
~CavesNoiseIntersection()
Definition cavegen.cpp:51
void generateCaves(MMVManip *vm, v3s16 nmin, v3s16 nmax, biome_t *biomemap)
Definition cavegen.cpp:58
const NodeDefManager * m_ndef
Definition cavegen.h:39
u16 m_ystride
Definition cavegen.h:49
v3s16 m_csize
Definition cavegen.h:45
u16 m_zstride_1d
Definition cavegen.h:50
Noise * noise_cave1
Definition cavegen.h:52
bool large_cave
Definition cavegen.h:124
bool large_cave_is_flat
Definition cavegen.h:125
MMVManip * vm
Definition cavegen.h:104
BiomeGen * bmgn
Definition cavegen.h:108
int water_level
Definition cavegen.h:111
v3f orp
Definition cavegen.h:132
v3s16 ar
Definition cavegen.h:134
s16 * heightmap
Definition cavegen.h:107
PseudoRandom * ps
Definition cavegen.h:141
content_t c_biome_liquid
Definition cavegen.h:145
s32 seed
Definition cavegen.h:110
u16 ystride
Definition cavegen.h:117
GenerateNotifier * gennotify
Definition cavegen.h:106
v3f main_direction
Definition cavegen.h:136
u16 tunnel_routepoints
Definition cavegen.h:121
const NodeDefManager * ndef
Definition cavegen.h:105
bool isPosAboveSurface(v3s16 p)
Definition cavegen.cpp:600
s16 route_y_max
Definition cavegen.h:139
void makeCave(MMVManip *vm, v3s16 nmin, v3s16 nmax, PseudoRandom *ps, bool is_large_cave, int max_stone_height, s16 *heightmap)
Definition cavegen.cpp:311
s16 route_y_min
Definition cavegen.h:138
content_t c_water_source
Definition cavegen.h:143
content_t c_lava_source
Definition cavegen.h:144
v3s16 node_max
Definition cavegen.h:130
v3s16 node_min
Definition cavegen.h:129
CavesRandomWalk(const NodeDefManager *ndef, GenerateNotifier *gennotify=NULL, s32 seed=0, int water_level=1, content_t water_source=CONTENT_IGNORE, content_t lava_source=CONTENT_IGNORE, float large_cave_flooded=0.5f, BiomeGen *biomegen=NULL)
Definition cavegen.cpp:277
NoiseParams * np_caveliquids
Definition cavegen.h:115
v3s16 of
Definition cavegen.h:133
s16 min_tunnel_diameter
Definition cavegen.h:119
void carveRoute(v3f vec, float f, bool randomize_xz)
Definition cavegen.cpp:511
void makeTunnel(bool dirswitch)
Definition cavegen.cpp:426
s16 max_tunnel_diameter
Definition cavegen.h:120
int part_max_length_rs
Definition cavegen.h:122
bool use_biome_liquid
Definition cavegen.h:127
s16 rs
Definition cavegen.h:135
bool flooded
Definition cavegen.h:126
float large_cave_flooded
Definition cavegen.h:112
bool large_cave_is_flat
Definition cavegen.h:205
MMVManip * vm
Definition cavegen.h:184
u16 tunnel_routepoints
Definition cavegen.h:201
GenerateNotifier * gennotify
Definition cavegen.h:186
v3s16 of
Definition cavegen.h:211
CavesV6(const NodeDefManager *ndef, GenerateNotifier *gennotify=NULL, int water_level=1, content_t water_source=CONTENT_IGNORE, content_t lava_source=CONTENT_IGNORE)
Definition cavegen.cpp:620
v3s16 node_min
Definition cavegen.h:207
s16 route_y_max
Definition cavegen.h:217
void carveRoute(v3f vec, float f, bool randomize_xz, bool tunnel_above_ground)
Definition cavegen.cpp:833
bool large_cave
Definition cavegen.h:204
v3s16 node_max
Definition cavegen.h:208
const NodeDefManager * ndef
Definition cavegen.h:185
s16 rs
Definition cavegen.h:213
PseudoRandom * ps
Definition cavegen.h:187
u16 ystride
Definition cavegen.h:197
void makeTunnel(bool dirswitch)
Definition cavegen.cpp:741
v3f main_direction
Definition cavegen.h:214
s16 max_tunnel_diameter
Definition cavegen.h:200
v3s16 ar
Definition cavegen.h:212
int part_max_length_rs
Definition cavegen.h:202
void makeCave(MMVManip *vm, v3s16 nmin, v3s16 nmax, PseudoRandom *ps, PseudoRandom *ps2, bool is_large_cave, int max_stone_height, s16 *heightmap=NULL)
Definition cavegen.cpp:643
PseudoRandom * ps2
Definition cavegen.h:188
s16 min_tunnel_diameter
Definition cavegen.h:199
content_t c_lava_source
Definition cavegen.h:193
v3f orp
Definition cavegen.h:210
s16 route_y_min
Definition cavegen.h:216
content_t c_water_source
Definition cavegen.h:192
s16 * heightmap
Definition cavegen.h:191
s16 getSurfaceFromHeightmap(v3s16 p)
Definition cavegen.cpp:905
int water_level
Definition cavegen.h:194
This class is for getting the actual properties of nodes from their content ID.
Definition nodedef.h:540
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13
core::vector3df v3f
Definition irr_v3d.h:11
#define CONTENT_IGNORE
Definition mapnode.h:58
u16 content_t
Definition mapnode.h:22
static std::string p(std::string path)
Definition test_filesys.cpp:53