#include <mapgen_valleys.h>
Public Member Functions | |
MapgenValleys (MapgenValleysParams *params, EmergeParams *emerge) | |
~MapgenValleys () | |
virtual MapgenType | getType () const |
virtual void | makeChunk (BlockMakeData *data) |
int | getSpawnLevelAtPoint (v2s16 p) |
Public Member Functions inherited from MapgenBasic | |
MapgenBasic (int mapgenid, MapgenParams *params, EmergeParams *emerge) | |
virtual | ~MapgenBasic () |
virtual void | generateBiomes () |
virtual void | dustTopNodes () |
virtual void | generateCavesNoiseIntersection (s16 max_stone_y) |
virtual void | generateCavesRandomWalk (s16 max_stone_y, s16 large_cave_ymax) |
virtual bool | generateCavernsNoise (s16 max_stone_y) |
virtual void | generateDungeons (s16 max_stone_y) |
Public Member Functions inherited from Mapgen | |
Mapgen ()=default | |
Mapgen (int mapgenid, MapgenParams *params, EmergeParams *emerge) | |
virtual | ~Mapgen () |
DISABLE_CLASS_COPY (Mapgen) | |
s16 | findGroundLevel (v2s16 p2d, s16 ymin, s16 ymax) |
s16 | findLiquidSurface (v2s16 p2d, s16 ymin, s16 ymax) |
void | updateHeightmap (v3s16 nmin, v3s16 nmax) |
void | getSurfaces (v2s16 p2d, s16 ymin, s16 ymax, std::vector< s16 > &floors, std::vector< s16 > &ceilings) |
void | updateLiquid (UniqueQueue< v3s16 > *trans_liquid, v3s16 nmin, v3s16 nmax) |
void | setLighting (u8 light, v3s16 nmin, v3s16 nmax) |
Set light in entire area to fixed value. | |
void | calcLighting (v3s16 nmin, v3s16 nmax, v3s16 full_nmin, v3s16 full_nmax, bool propagate_shadow=true) |
Run all lighting calculations. | |
void | propagateSunlight (v3s16 nmin, v3s16 nmax, bool propagate_shadow) |
Spread sunlight from the area above downwards. | |
void | spreadLight (const v3s16 &nmin, const v3s16 &nmax) |
Spread light in the given area. | |
virtual int | getGroundLevelAtPoint (v2s16 p) |
Private Member Functions | |
virtual int | generateTerrain () |
Private Attributes | |
BiomeGenOriginal * | m_bgen |
float | altitude_chill |
float | river_depth_bed |
float | river_size_factor |
Noise * | noise_inter_valley_fill |
Noise * | noise_inter_valley_slope |
Noise * | noise_rivers |
Noise * | noise_terrain_height |
Noise * | noise_valley_depth |
Noise * | noise_valley_profile |
MapgenValleys::MapgenValleys | ( | MapgenValleysParams * | params, |
EmergeParams * | emerge ) |
References altitude_chill, MapgenValleysParams::altitude_chill, Mapgen::biomegen, BIOMEGEN_ORIGINAL, MapgenBasic::cave_width, MapgenValleysParams::cave_width, MapgenBasic::cavern_limit, MapgenValleysParams::cavern_limit, MapgenBasic::cavern_taper, MapgenValleysParams::cavern_taper, MapgenBasic::cavern_threshold, MapgenValleysParams::cavern_threshold, Mapgen::csize, MapgenBasic::dungeon_ymax, MapgenValleysParams::dungeon_ymax, MapgenBasic::dungeon_ymin, MapgenValleysParams::dungeon_ymin, FATAL_ERROR_IF, BiomeGen::getType(), MapgenBasic::large_cave_depth, MapgenValleysParams::large_cave_depth, MapgenBasic::large_cave_flooded, MapgenValleysParams::large_cave_flooded, MapgenBasic::large_cave_num_max, MapgenValleysParams::large_cave_num_max, MapgenBasic::large_cave_num_min, MapgenValleysParams::large_cave_num_min, m_bgen, MapgenBasic::noise_filler_depth, noise_inter_valley_fill, noise_inter_valley_slope, noise_rivers, noise_terrain_height, noise_valley_depth, noise_valley_profile, MapgenBasic::np_cave1, MapgenValleysParams::np_cave1, MapgenBasic::np_cave2, MapgenValleysParams::np_cave2, MapgenBasic::np_cavern, MapgenValleysParams::np_cavern, MapgenBasic::np_dungeons, MapgenValleysParams::np_dungeons, MapgenValleysParams::np_filler_depth, MapgenValleysParams::np_inter_valley_fill, MapgenValleysParams::np_inter_valley_slope, MapgenValleysParams::np_rivers, MapgenValleysParams::np_terrain_height, MapgenValleysParams::np_valley_depth, MapgenValleysParams::np_valley_profile, MapgenValleysParams::river_depth, river_depth_bed, MapgenValleysParams::river_size, river_size_factor, Mapgen::seed, MapgenBasic::small_cave_num_max, MapgenValleysParams::small_cave_num_max, MapgenBasic::small_cave_num_min, MapgenValleysParams::small_cave_num_min, MapgenBasic::spflags, and MapgenParams::spflags.
MapgenValleys::~MapgenValleys | ( | ) |
|
privatevirtual |
References VoxelArea::add_y(), altitude_chill, MapgenBasic::c_river_water_source, MapgenBasic::c_stone, MapgenBasic::c_water_source, CONTENT_AIR, CONTENT_IGNORE, MapNode::getContent(), VoxelArea::getExtent(), BiomeGenOriginal::heatmap, BiomeGenOriginal::humidmap, VoxelArea::index(), VoxelManipulator::m_area, m_bgen, VoxelManipulator::m_data, MAX_MAP_GENERATION_LIMIT, MGVALLEYS_ALT_CHILL, MGVALLEYS_ALT_DRY, MGVALLEYS_HUMID_RIVERS, MGVALLEYS_VARY_RIVER_DEPTH, MapgenBasic::node_max, MapgenBasic::node_min, noise_inter_valley_fill, noise_inter_valley_slope, noise_rivers, noise_terrain_height, noise_valley_depth, noise_valley_profile, Noise::perlinMap2D(), Noise::perlinMap3D(), Noise::result, river_depth_bed, river_size_factor, MapgenBasic::spflags, Mapgen::vm, Mapgen::water_level, MapgenBasic::ystride, and MapgenBasic::zstride_1u1d.
Referenced by makeChunk().
|
virtual |
Reimplemented from Mapgen.
References MAX_MAP_GENERATION_LIMIT, noise_inter_valley_fill, noise_inter_valley_slope, noise_rivers, noise_terrain_height, noise_valley_depth, noise_valley_profile, NoisePerlin2D(), NoisePerlin3D(), Noise::np, NoiseParams::offset, p(), river_size_factor, Mapgen::seed, and Mapgen::water_level.
|
inlinevirtual |
Reimplemented from Mapgen.
References MAPGEN_VALLEYS.
|
virtual |
Reimplemented from Mapgen.
References BlockMakeData::blockpos_max, BlockMakeData::blockpos_min, Mapgen::blockseed, BiomeGenOriginal::calcBiomeNoise(), Mapgen::calcLighting(), EmergeParams::decomgr, MapgenBasic::dustTopNodes(), Mapgen::flags, MapgenBasic::full_node_max, MapgenBasic::full_node_min, MapgenBasic::generateBiomes(), MapgenBasic::generateCavernsNoise(), MapgenBasic::generateCavesNoiseIntersection(), MapgenBasic::generateCavesRandomWalk(), MapgenBasic::generateDungeons(), generateTerrain(), Mapgen::generating, Mapgen::getBlockSeed2(), MapgenBasic::large_cave_depth, m_bgen, Mapgen::m_emerge, MAP_BLOCKSIZE, MAX_MAP_GENERATION_LIMIT, MG_BIOMES, MG_CAVES, MG_DECORATIONS, MG_DUNGEONS, MG_LIGHT, MG_ORES, Mapgen::ndef, MapgenBasic::node_max, MapgenBasic::node_min, BlockMakeData::nodedef, EmergeParams::oremgr, DecorationManager::placeAllDecos(), OreManager::placeAllOres(), Mapgen::seed, BlockMakeData::transforming_liquid, Mapgen::updateHeightmap(), Mapgen::updateLiquid(), Mapgen::vm, and BlockMakeData::vmanip.
|
private |
Referenced by MapgenValleys(), and generateTerrain().
|
private |
Referenced by MapgenValleys(), generateTerrain(), and makeChunk().
|
private |
Referenced by MapgenValleys(), ~MapgenValleys(), generateTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenValleys(), ~MapgenValleys(), generateTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenValleys(), ~MapgenValleys(), generateTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenValleys(), ~MapgenValleys(), generateTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenValleys(), ~MapgenValleys(), generateTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenValleys(), ~MapgenValleys(), generateTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenValleys(), and generateTerrain().
|
private |
Referenced by MapgenValleys(), generateTerrain(), and getSpawnLevelAtPoint().