#include <cavegen.h>
|
| 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) |
|
void | makeCave (MMVManip *vm, v3s16 nmin, v3s16 nmax, PseudoRandom *ps, bool is_large_cave, int max_stone_height, s16 *heightmap) |
|
◆ CavesRandomWalk()
References bmgn, c_lava_source, c_water_source, CONTENT_AIR, CONTENT_IGNORE, gennotify, NodeDefManager::getId(), large_cave_flooded, ndef, np_caveliquids, nparams_caveliquids, seed, and water_level.
◆ carveRoute()
void CavesRandomWalk::carveRoute |
( |
v3f | vec, |
|
|
float | f, |
|
|
bool | randomize_xz ) |
|
private |
References c_biome_liquid, c_lava_source, c_water_source, VoxelArea::contains(), CONTENT_AIR, CONTENT_IGNORE, flooded, NodeDefManager::get(), MapNode::getContent(), VoxelArea::index(), ContentFeatures::is_ground_content, large_cave, large_cave_is_flat, VoxelManipulator::m_area, VoxelManipulator::m_data, VoxelManipulator::m_flags, MAP_BLOCKSIZE, MYMAX, ndef, node_max, node_min, NoisePerlin3D(), np_caveliquids, of, orp, p(), ps, PseudoRandom::range(), rs, seed, use_biome_liquid, vm, VMANIP_FLAG_CAVE, and water_level.
Referenced by makeTunnel().
◆ isPosAboveSurface()
bool CavesRandomWalk::isPosAboveSurface |
( |
v3s16 | p | ) |
|
|
inlineprivate |
◆ makeCave()
void CavesRandomWalk::makeCave |
( |
MMVManip * | vm, |
|
|
v3s16 | nmin, |
|
|
v3s16 | nmax, |
|
|
PseudoRandom * | ps, |
|
|
bool | is_large_cave, |
|
|
int | max_stone_height, |
|
|
s16 * | heightmap ) |
References GenerateNotifier::addEvent(), ar, bmgn, c_biome_liquid, Biome::c_cave_liquid, CONTENT_AIR, CONTENT_IGNORE, flooded, gennotify, GENNOTIFY_CAVE_BEGIN, GENNOTIFY_CAVE_END, GENNOTIFY_LARGECAVE_BEGIN, GENNOTIFY_LARGECAVE_END, BiomeGen::getBiomeAtPoint(), heightmap, large_cave, large_cave_flooded, large_cave_is_flat, main_direction, makeTunnel(), MAP_BLOCKSIZE, max_tunnel_diameter, min_tunnel_diameter, MYMAX, PseudoRandom::next(), node_max, node_min, of, orp, part_max_length_rs, ps, PseudoRandom::range(), rangelim, route_y_max, route_y_min, tunnel_routepoints, use_biome_liquid, vm, water_level, and ystride.
Referenced by MapgenBasic::generateCavesRandomWalk().
◆ makeTunnel()
void CavesRandomWalk::makeTunnel |
( |
bool | dirswitch | ) |
|
|
private |
References ar, carveRoute(), isPosAboveSurface(), large_cave, main_direction, max_tunnel_diameter, min_tunnel_diameter, PseudoRandom::next(), of, orp, part_max_length_rs, ps, PseudoRandom::range(), route_y_max, route_y_min, and rs.
Referenced by makeCave().
◆ ar
v3s16 CavesRandomWalk::ar |
◆ bmgn
◆ c_biome_liquid
◆ c_lava_source
◆ c_water_source
◆ flooded
bool CavesRandomWalk::flooded |
◆ gennotify
◆ heightmap
s16* CavesRandomWalk::heightmap |
◆ large_cave
bool CavesRandomWalk::large_cave |
◆ large_cave_flooded
float CavesRandomWalk::large_cave_flooded |
◆ large_cave_is_flat
bool CavesRandomWalk::large_cave_is_flat |
◆ main_direction
v3f CavesRandomWalk::main_direction |
◆ max_tunnel_diameter
s16 CavesRandomWalk::max_tunnel_diameter |
◆ min_tunnel_diameter
s16 CavesRandomWalk::min_tunnel_diameter |
◆ ndef
◆ node_max
v3s16 CavesRandomWalk::node_max |
◆ node_min
v3s16 CavesRandomWalk::node_min |
◆ np_caveliquids
◆ of
v3s16 CavesRandomWalk::of |
◆ orp
◆ part_max_length_rs
int CavesRandomWalk::part_max_length_rs |
◆ ps
◆ route_y_max
s16 CavesRandomWalk::route_y_max |
◆ route_y_min
s16 CavesRandomWalk::route_y_min |
◆ rs
◆ seed
s32 CavesRandomWalk::seed |
◆ tunnel_routepoints
u16 CavesRandomWalk::tunnel_routepoints |
◆ use_biome_liquid
bool CavesRandomWalk::use_biome_liquid |
◆ vm
◆ water_level
int CavesRandomWalk::water_level |
◆ ystride
u16 CavesRandomWalk::ystride |
The documentation for this class was generated from the following files: