#include <mapgen.h>
Public Member Functions | |
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) | |
virtual MapgenType | getType () const |
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 void | makeChunk (BlockMakeData *data) |
virtual int | getGroundLevelAtPoint (v2s16 p) |
virtual int | getSpawnLevelAtPoint (v2s16 p) |
Protected Attributes | |
BiomeManager * | m_bmgr |
Noise * | noise_filler_depth |
v3s16 | node_min |
v3s16 | node_max |
v3s16 | full_node_min |
v3s16 | full_node_max |
content_t | c_stone |
content_t | c_water_source |
content_t | c_river_water_source |
content_t | c_lava_source |
content_t | c_cobble |
int | ystride |
int | zstride |
int | zstride_1d |
int | zstride_1u1d |
u32 | spflags |
NoiseParams | np_cave1 |
NoiseParams | np_cave2 |
NoiseParams | np_cavern |
NoiseParams | np_dungeons |
float | cave_width |
float | cavern_limit |
float | cavern_taper |
float | cavern_threshold |
int | small_cave_num_min |
int | small_cave_num_max |
int | large_cave_num_min |
int | large_cave_num_max |
float | large_cave_flooded |
s16 | large_cave_depth |
s16 | dungeon_ymin |
s16 | dungeon_ymax |
Additional Inherited Members | |
Static Public Member Functions inherited from Mapgen | |
static u32 | getBlockSeed (v3s16 p, s32 seed) |
static u32 | getBlockSeed2 (v3s16 p, s32 seed) |
static MapgenType | getMapgenType (const std::string &mgname) |
static const char * | getMapgenName (MapgenType mgtype) |
static Mapgen * | createMapgen (MapgenType mgtype, MapgenParams *params, EmergeParams *emerge) |
static MapgenParams * | createMapgenParams (MapgenType mgtype) |
static void | getMapgenNames (std::vector< const char * > *mgnames, bool include_hidden) |
static void | setDefaultSettings (Settings *settings) |
Public Attributes inherited from Mapgen | |
s32 | seed = 0 |
int | water_level = 0 |
int | mapgen_limit = 0 |
u32 | flags = 0 |
bool | generating = false |
int | id = -1 |
MMVManip * | vm = nullptr |
EmergeParams * | m_emerge = nullptr |
const NodeDefManager * | ndef = nullptr |
u32 | blockseed |
s16 * | heightmap = nullptr |
biome_t * | biomemap = nullptr |
v3s16 | csize |
BiomeGen * | biomegen = nullptr |
GenerateNotifier | gennotify |
MapgenBasic::MapgenBasic | ( | int | mapgenid, |
MapgenParams * | params, | ||
EmergeParams * | emerge ) |
References BiomeGen::assertChunkSize(), EmergeParams::biomegen, Mapgen::biomegen, BiomeGen::biomemap, Mapgen::biomemap, EmergeParams::biomemgr, c_cobble, c_lava_source, c_river_water_source, c_stone, c_water_source, CONTENT_IGNORE, Mapgen::csize, errorstream, NodeDefManager::getId(), Mapgen::heightmap, m_bmgr, Mapgen::ndef, warningstream, ystride, zstride, zstride_1d, and zstride_1u1d.
|
virtual |
References Mapgen::heightmap.
|
virtual |
References VoxelArea::add_y(), Mapgen::biomemap, Biome::c_dust, CONTENT_AIR, CONTENT_IGNORE, ContentFeatures::drawtype, full_node_max, NodeDefManager::get(), MapNode::getContent(), VoxelArea::getExtent(), ObjDefManager::getRaw(), VoxelArea::index(), VoxelManipulator::m_area, m_bmgr, VoxelManipulator::m_data, Mapgen::ndef, NDT_ALLFACES, NDT_ALLFACES_OPTIONAL, NDT_GLASSLIKE, NDT_GLASSLIKE_FRAMED, NDT_GLASSLIKE_FRAMED_OPTIONAL, NDT_NORMAL, node_max, node_min, Mapgen::vm, ContentFeatures::walkable, and Mapgen::water_level.
Referenced by MapgenCarpathian::makeChunk(), MapgenFlat::makeChunk(), MapgenFractal::makeChunk(), MapgenV5::makeChunk(), MapgenV7::makeChunk(), and MapgenValleys::makeChunk().
|
virtual |
References VoxelArea::add_y(), BIOME_NONE, Mapgen::biomegen, Mapgen::biomemap, Biome::c_filler, Biome::c_river_water, c_river_water_source, Biome::c_riverbed, Biome::c_stone, c_stone, Biome::c_top, Biome::c_water, c_water_source, Biome::c_water_top, CONTENT_AIR, Biome::depth_filler, Biome::depth_riverbed, Biome::depth_top, Biome::depth_water_top, BiomeGen::getBiomeAtIndex(), MapNode::getContent(), VoxelArea::getExtent(), BiomeGen::getNextTransitionY(), ObjDef::index, VoxelArea::index(), VoxelManipulator::m_area, VoxelManipulator::m_data, MYMAX, node_max, node_min, noise_filler_depth, Noise::perlinMap2D(), Noise::result, U16_MAX, Mapgen::vm, and Mapgen::water_level.
Referenced by MapgenCarpathian::makeChunk(), MapgenFlat::makeChunk(), MapgenFractal::makeChunk(), MapgenV5::makeChunk(), MapgenV7::makeChunk(), and MapgenValleys::makeChunk().
|
virtual |
References cavern_limit, cavern_taper, cavern_threshold, Mapgen::csize, CavernsNoise::generateCaverns(), Mapgen::ndef, node_max, node_min, np_cavern, Mapgen::seed, and Mapgen::vm.
Referenced by MapgenCarpathian::makeChunk(), MapgenFlat::makeChunk(), MapgenV5::makeChunk(), MapgenV7::makeChunk(), and MapgenValleys::makeChunk().
|
virtual |
References Mapgen::biomegen, Mapgen::biomemap, cave_width, Mapgen::csize, CavesNoiseIntersection::generateCaves(), m_bmgr, Mapgen::ndef, node_max, node_min, np_cave1, np_cave2, Mapgen::seed, and Mapgen::vm.
Referenced by MapgenCarpathian::makeChunk(), MapgenFlat::makeChunk(), MapgenFractal::makeChunk(), MapgenV5::makeChunk(), MapgenV7::makeChunk(), and MapgenValleys::makeChunk().
|
virtual |
References Mapgen::biomegen, Mapgen::blockseed, c_lava_source, c_water_source, Mapgen::gennotify, Mapgen::heightmap, large_cave_flooded, large_cave_num_max, large_cave_num_min, CavesRandomWalk::makeCave(), Mapgen::ndef, node_max, node_min, PseudoRandom::range(), Mapgen::seed, small_cave_num_max, small_cave_num_min, Mapgen::vm, and Mapgen::water_level.
Referenced by MapgenCarpathian::makeChunk(), MapgenFlat::makeChunk(), MapgenFractal::makeChunk(), MapgenV5::makeChunk(), MapgenV7::makeChunk(), and MapgenValleys::makeChunk().
|
virtual |
References Mapgen::biomegen, Mapgen::blockseed, DungeonParams::c_alt_wall, c_cobble, Biome::c_dungeon, Biome::c_dungeon_alt, Biome::c_dungeon_stair, DungeonParams::c_stair, Biome::c_stone, DungeonParams::c_wall, CONTENT_IGNORE, DungeonParams::corridor_len_max, DungeonParams::corridor_len_min, DungeonParams::diagonal_dirs, dungeon_ymax, dungeon_ymin, full_node_max, full_node_min, DungeonGen::generate(), Mapgen::gennotify, GENNOTIFY_DUNGEON, BiomeGen::getBiomeAtPoint(), DungeonParams::holesize, DungeonParams::large_room_chance, Mapgen::ndef, node_max, node_min, NoisePerlin3D(), DungeonParams::notifytype, DungeonParams::np_alt_wall, np_dungeons, DungeonParams::num_dungeons, DungeonParams::num_rooms, DungeonParams::only_in_ground, PseudoRandom::range(), DungeonParams::room_size_large_max, DungeonParams::room_size_large_min, DungeonParams::room_size_max, DungeonParams::room_size_min, DungeonParams::seed, Mapgen::seed, and Mapgen::vm.
Referenced by MapgenCarpathian::makeChunk(), MapgenFlat::makeChunk(), MapgenFractal::makeChunk(), MapgenV5::makeChunk(), MapgenV7::makeChunk(), and MapgenValleys::makeChunk().
|
protected |
Referenced by MapgenBasic(), and generateDungeons().
|
protected |
Referenced by MapgenBasic(), and generateCavesRandomWalk().
|
protected |
Referenced by MapgenBasic(), generateBiomes(), and MapgenValleys::generateTerrain().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by MapgenCarpathian::MapgenCarpathian(), MapgenFlat::MapgenFlat(), MapgenFractal::MapgenFractal(), MapgenV5::MapgenV5(), MapgenV7::MapgenV7(), MapgenValleys::MapgenValleys(), MapgenCarpathian::makeChunk(), MapgenFlat::makeChunk(), MapgenFractal::makeChunk(), MapgenV5::makeChunk(), MapgenV7::makeChunk(), and MapgenValleys::makeChunk().
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by MapgenBasic(), dustTopNodes(), and generateCavesNoiseIntersection().
|
protected |
Referenced by dustTopNodes(), MapgenV5::generateBaseTerrain(), generateBiomes(), generateCavernsNoise(), generateCavesNoiseIntersection(), generateCavesRandomWalk(), generateDungeons(), MapgenCarpathian::generateTerrain(), MapgenFlat::generateTerrain(), MapgenFractal::generateTerrain(), MapgenV7::generateTerrain(), MapgenValleys::generateTerrain(), MapgenCarpathian::getSpawnLevelAtPoint(), MapgenCarpathian::makeChunk(), MapgenFlat::makeChunk(), MapgenFractal::makeChunk(), MapgenV5::makeChunk(), MapgenV7::makeChunk(), and MapgenValleys::makeChunk().
|
protected |
Referenced by dustTopNodes(), MapgenV5::generateBaseTerrain(), generateBiomes(), generateCavernsNoise(), generateCavesNoiseIntersection(), generateCavesRandomWalk(), generateDungeons(), MapgenCarpathian::generateTerrain(), MapgenFlat::generateTerrain(), MapgenFractal::generateTerrain(), MapgenV7::generateTerrain(), MapgenValleys::generateTerrain(), MapgenCarpathian::makeChunk(), MapgenFlat::makeChunk(), MapgenFractal::makeChunk(), MapgenV5::makeChunk(), MapgenV7::makeChunk(), and MapgenValleys::makeChunk().
|
protected |
Referenced by MapgenCarpathian::MapgenCarpathian(), MapgenFlat::MapgenFlat(), MapgenFractal::MapgenFractal(), MapgenV5::MapgenV5(), MapgenV7::MapgenV7(), MapgenValleys::MapgenValleys(), MapgenCarpathian::~MapgenCarpathian(), MapgenFlat::~MapgenFlat(), MapgenFractal::~MapgenFractal(), MapgenV5::~MapgenV5(), MapgenV7::~MapgenV7(), MapgenValleys::~MapgenValleys(), and generateBiomes().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by MapgenCarpathian::MapgenCarpathian(), MapgenFlat::MapgenFlat(), MapgenFractal::MapgenFractal(), MapgenV5::MapgenV5(), MapgenV7::MapgenV7(), MapgenValleys::MapgenValleys(), MapgenCarpathian::~MapgenCarpathian(), MapgenFlat::~MapgenFlat(), MapgenV7::~MapgenV7(), MapgenCarpathian::generateTerrain(), MapgenFlat::generateTerrain(), MapgenFractal::generateTerrain(), MapgenV7::generateTerrain(), MapgenValleys::generateTerrain(), MapgenCarpathian::getSpawnLevelAtPoint(), MapgenFlat::getSpawnLevelAtPoint(), MapgenV7::getSpawnLevelAtPoint(), MapgenCarpathian::makeChunk(), MapgenFlat::makeChunk(), MapgenFractal::makeChunk(), MapgenV5::makeChunk(), and MapgenV7::makeChunk().
|
protected |
|
protected |
Referenced by MapgenBasic().
|
protected |
Referenced by MapgenBasic().
|
protected |