#include <mapgen_carpathian.h>
Public Member Functions | |
MapgenCarpathian (MapgenCarpathianParams *params, EmergeParams *emerge) | |
~MapgenCarpathian () | |
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 | |
float | getSteps (float noise) |
float | getLerp (float noise1, float noise2, float mod) |
int | generateTerrain () |
Private Attributes | |
float | base_level |
float | river_width |
float | river_depth |
float | valley_width |
Noise * | noise_height1 |
Noise * | noise_height2 |
Noise * | noise_height3 |
Noise * | noise_height4 |
Noise * | noise_hills_terrain |
Noise * | noise_ridge_terrain |
Noise * | noise_step_terrain |
Noise * | noise_hills |
Noise * | noise_ridge_mnt |
Noise * | noise_step_mnt |
Noise * | noise_rivers = nullptr |
Noise * | noise_mnt_var |
s32 | grad_wl |
MapgenCarpathian::MapgenCarpathian | ( | MapgenCarpathianParams * | params, |
EmergeParams * | emerge ) |
References base_level, MapgenCarpathianParams::base_level, MapgenBasic::cave_width, MapgenCarpathianParams::cave_width, MapgenBasic::cavern_limit, MapgenCarpathianParams::cavern_limit, MapgenBasic::cavern_taper, MapgenCarpathianParams::cavern_taper, MapgenBasic::cavern_threshold, MapgenCarpathianParams::cavern_threshold, Mapgen::csize, MapgenBasic::dungeon_ymax, MapgenCarpathianParams::dungeon_ymax, MapgenBasic::dungeon_ymin, MapgenCarpathianParams::dungeon_ymin, grad_wl, MapgenBasic::large_cave_depth, MapgenCarpathianParams::large_cave_depth, MapgenBasic::large_cave_flooded, MapgenCarpathianParams::large_cave_flooded, MapgenBasic::large_cave_num_max, MapgenCarpathianParams::large_cave_num_max, MapgenBasic::large_cave_num_min, MapgenCarpathianParams::large_cave_num_min, MGCARPATHIAN_RIVERS, MapgenBasic::noise_filler_depth, noise_height1, noise_height2, noise_height3, noise_height4, noise_hills, noise_hills_terrain, noise_mnt_var, noise_ridge_mnt, noise_ridge_terrain, noise_rivers, noise_step_mnt, noise_step_terrain, MapgenBasic::np_cave1, MapgenCarpathianParams::np_cave1, MapgenBasic::np_cave2, MapgenCarpathianParams::np_cave2, MapgenBasic::np_cavern, MapgenCarpathianParams::np_cavern, MapgenBasic::np_dungeons, MapgenCarpathianParams::np_dungeons, MapgenCarpathianParams::np_filler_depth, MapgenCarpathianParams::np_height1, MapgenCarpathianParams::np_height2, MapgenCarpathianParams::np_height3, MapgenCarpathianParams::np_height4, MapgenCarpathianParams::np_hills, MapgenCarpathianParams::np_hills_terrain, MapgenCarpathianParams::np_mnt_var, MapgenCarpathianParams::np_ridge_mnt, MapgenCarpathianParams::np_ridge_terrain, MapgenCarpathianParams::np_rivers, MapgenCarpathianParams::np_step_mnt, MapgenCarpathianParams::np_step_terrain, river_depth, MapgenCarpathianParams::river_depth, river_width, MapgenCarpathianParams::river_width, Mapgen::seed, MapgenBasic::small_cave_num_max, MapgenCarpathianParams::small_cave_num_max, MapgenBasic::small_cave_num_min, MapgenCarpathianParams::small_cave_num_min, MapgenBasic::spflags, MapgenParams::spflags, valley_width, MapgenCarpathianParams::valley_width, and Mapgen::water_level.
MapgenCarpathian::~MapgenCarpathian | ( | ) |
|
private |
References VoxelArea::add_y(), base_level, MapgenBasic::c_stone, MapgenBasic::c_water_source, CONTENT_AIR, CONTENT_IGNORE, MapNode::getContent(), VoxelArea::getExtent(), getLerp(), getSteps(), grad_wl, VoxelArea::index(), VoxelManipulator::m_area, VoxelManipulator::m_data, MAX_MAP_GENERATION_LIMIT, MGCARPATHIAN_RIVERS, MapgenBasic::node_max, MapgenBasic::node_min, noise_height1, noise_height2, noise_height3, noise_height4, noise_hills, noise_hills_terrain, noise_mnt_var, noise_ridge_mnt, noise_ridge_terrain, noise_rivers, noise_step_mnt, noise_step_terrain, Noise::perlinMap2D(), Noise::perlinMap3D(), Noise::result, river_depth, river_width, MapgenBasic::spflags, valley_width, Mapgen::vm, Mapgen::water_level, MapgenBasic::ystride, and MapgenBasic::zstride_1u1d.
Referenced by makeChunk().
|
inlineprivate |
Referenced by generateTerrain(), and getSpawnLevelAtPoint().
|
virtual |
Reimplemented from Mapgen.
References base_level, getLerp(), getSteps(), MAX_MAP_GENERATION_LIMIT, MGCARPATHIAN_RIVERS, MapgenBasic::node_max, noise_height1, noise_height2, noise_height3, noise_height4, noise_hills, noise_hills_terrain, noise_mnt_var, noise_ridge_mnt, noise_ridge_terrain, noise_rivers, noise_step_mnt, noise_step_terrain, NoisePerlin2D(), NoisePerlin3D(), Noise::np, p(), river_depth, river_width, Mapgen::seed, MapgenBasic::spflags, valley_width, and Mapgen::water_level.
|
private |
Referenced by generateTerrain(), and getSpawnLevelAtPoint().
|
inlinevirtual |
Reimplemented from Mapgen.
References MAPGEN_CARPATHIAN.
|
virtual |
Reimplemented from Mapgen.
References Mapgen::biomegen, BlockMakeData::blockpos_max, BlockMakeData::blockpos_min, Mapgen::blockseed, BiomeGen::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, Mapgen::m_emerge, MAP_BLOCKSIZE, MAX_MAP_GENERATION_LIMIT, MG_BIOMES, MG_CAVES, MG_DECORATIONS, MG_DUNGEONS, MG_LIGHT, MG_ORES, MGCARPATHIAN_CAVERNS, Mapgen::ndef, MapgenBasic::node_max, MapgenBasic::node_min, BlockMakeData::nodedef, EmergeParams::oremgr, DecorationManager::placeAllDecos(), OreManager::placeAllOres(), Mapgen::seed, MapgenBasic::spflags, BlockMakeData::transforming_liquid, Mapgen::updateHeightmap(), Mapgen::updateLiquid(), Mapgen::vm, and BlockMakeData::vmanip.
|
private |
Referenced by MapgenCarpathian(), generateTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenCarpathian(), and generateTerrain().
|
private |
Referenced by MapgenCarpathian(), ~MapgenCarpathian(), generateTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenCarpathian(), ~MapgenCarpathian(), generateTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenCarpathian(), ~MapgenCarpathian(), generateTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenCarpathian(), ~MapgenCarpathian(), generateTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenCarpathian(), ~MapgenCarpathian(), generateTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenCarpathian(), ~MapgenCarpathian(), generateTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenCarpathian(), ~MapgenCarpathian(), generateTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenCarpathian(), ~MapgenCarpathian(), generateTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenCarpathian(), ~MapgenCarpathian(), generateTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenCarpathian(), ~MapgenCarpathian(), generateTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenCarpathian(), ~MapgenCarpathian(), generateTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenCarpathian(), ~MapgenCarpathian(), generateTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenCarpathian(), generateTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenCarpathian(), generateTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenCarpathian(), generateTerrain(), and getSpawnLevelAtPoint().