#include <mapgen_v5.h>
Public Member Functions | |
MapgenV5 (MapgenV5Params *params, EmergeParams *emerge) | |
~MapgenV5 () | |
virtual MapgenType | getType () const |
virtual void | makeChunk (BlockMakeData *data) |
int | getSpawnLevelAtPoint (v2s16 p) |
int | generateBaseTerrain () |
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 Attributes | |
Noise * | noise_factor |
Noise * | noise_height |
Noise * | noise_ground |
MapgenV5::MapgenV5 | ( | MapgenV5Params * | params, |
EmergeParams * | emerge ) |
References MapgenBasic::cave_width, MapgenBasic::cavern_limit, MapgenBasic::cavern_taper, MapgenBasic::cavern_threshold, Mapgen::csize, MapgenBasic::dungeon_ymax, MapgenBasic::dungeon_ymin, MapgenBasic::large_cave_depth, MapgenBasic::large_cave_flooded, MapgenBasic::large_cave_num_max, MapgenBasic::large_cave_num_min, noise_factor, MapgenBasic::noise_filler_depth, noise_ground, noise_height, MapgenBasic::np_cave1, MapgenBasic::np_cave2, MapgenBasic::np_cavern, MapgenBasic::np_dungeons, params, Mapgen::seed, MapgenBasic::small_cave_num_max, MapgenBasic::small_cave_num_min, and MapgenBasic::spflags.
MapgenV5::~MapgenV5 | ( | ) |
References noise_factor, MapgenBasic::noise_filler_depth, noise_ground, and noise_height.
int MapgenV5::generateBaseTerrain | ( | ) |
References MapgenBasic::c_stone, MapgenBasic::c_water_source, CONTENT_AIR, CONTENT_IGNORE, MapNode::getContent(), VoxelArea::index(), VoxelManipulator::m_area, VoxelManipulator::m_data, MAX_MAP_GENERATION_LIMIT, MapgenBasic::node_max, MapgenBasic::node_min, noise_factor, noise_ground, noise_height, Noise::perlinMap2D(), Noise::perlinMap3D(), Noise::result, Mapgen::vm, Mapgen::water_level, and MapgenBasic::ystride.
Referenced by makeChunk().
|
virtual |
Reimplemented from Mapgen.
References MAX_MAP_GENERATION_LIMIT, MYMAX, noise_factor, noise_ground, noise_height, NoisePerlin2D(), NoisePerlin3D(), Noise::np, NoiseParams::offset, p(), Mapgen::seed, and Mapgen::water_level.
|
inlinevirtual |
|
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, generateBaseTerrain(), MapgenBasic::generateBiomes(), MapgenBasic::generateCavernsNoise(), MapgenBasic::generateCavesNoiseIntersection(), MapgenBasic::generateCavesRandomWalk(), MapgenBasic::generateDungeons(), 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, MGV5_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 MapgenV5(), ~MapgenV5(), generateBaseTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenV5(), ~MapgenV5(), generateBaseTerrain(), and getSpawnLevelAtPoint().
|
private |
Referenced by MapgenV5(), ~MapgenV5(), generateBaseTerrain(), and getSpawnLevelAtPoint().