#include <mapgen_flat.h>
Public Member Functions | |
MapgenFlatParams () | |
~MapgenFlatParams ()=default | |
void | readParams (const Settings *settings) |
void | writeParams (Settings *settings) const |
void | setDefaultSettings (Settings *settings) |
Public Member Functions inherited from MapgenParams | |
MapgenParams ()=default | |
virtual | ~MapgenParams () |
s32 | getSpawnRangeMax () |
Public Attributes | |
s16 | ground_level = 8 |
float | lake_threshold = -0.45f |
float | lake_steepness = 48.0f |
float | hill_threshold = 0.45f |
float | hill_steepness = 64.0f |
float | cave_width = 0.09f |
u16 | small_cave_num_min = 0 |
u16 | small_cave_num_max = 0 |
u16 | large_cave_num_min = 0 |
u16 | large_cave_num_max = 2 |
s16 | large_cave_depth = -33 |
float | large_cave_flooded = 0.5f |
s16 | cavern_limit = -256 |
s16 | cavern_taper = 256 |
float | cavern_threshold = 0.7f |
s16 | dungeon_ymin = -31000 |
s16 | dungeon_ymax = 31000 |
NoiseParams | np_terrain |
NoiseParams | np_filler_depth |
NoiseParams | np_cavern |
NoiseParams | np_cave1 |
NoiseParams | np_cave2 |
NoiseParams | np_dungeons |
Public Attributes inherited from MapgenParams | |
MapgenType | mgtype = MAPGEN_DEFAULT |
s16 | chunksize = 5 |
u64 | seed = 0 |
s16 | water_level = 1 |
s16 | mapgen_limit = MAX_MAP_GENERATION_LIMIT |
u32 | flags = 0 |
u32 | spflags = 0 |
BiomeParams * | bparams = nullptr |
s16 | mapgen_edge_min = -MAX_MAP_GENERATION_LIMIT |
s16 | mapgen_edge_max = MAX_MAP_GENERATION_LIMIT |
MapgenFlatParams::MapgenFlatParams | ( | ) |
|
default |
|
virtual |
Reimplemented from MapgenParams.
References cave_width, cavern_limit, cavern_taper, cavern_threshold, dungeon_ymax, dungeon_ymin, flagdesc_mapgen_flat, ground_level, hill_steepness, hill_threshold, lake_steepness, lake_threshold, large_cave_depth, large_cave_flooded, large_cave_num_max, large_cave_num_min, np_cave1, np_cave2, np_cavern, np_dungeons, np_filler_depth, np_terrain, settings, small_cave_num_max, small_cave_num_min, and MapgenParams::spflags.
|
virtual |
Reimplemented from MapgenParams.
References flagdesc_mapgen_flat, and settings.
|
virtual |
Reimplemented from MapgenParams.
References cave_width, cavern_limit, cavern_taper, cavern_threshold, dungeon_ymax, dungeon_ymin, flagdesc_mapgen_flat, ground_level, hill_steepness, hill_threshold, lake_steepness, lake_threshold, large_cave_depth, large_cave_flooded, large_cave_num_max, large_cave_num_min, np_cave1, np_cave2, np_cavern, np_dungeons, np_filler_depth, np_terrain, settings, small_cave_num_max, small_cave_num_min, and MapgenParams::spflags.
float MapgenFlatParams::cave_width = 0.09f |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
s16 MapgenFlatParams::cavern_limit = -256 |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
s16 MapgenFlatParams::cavern_taper = 256 |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
float MapgenFlatParams::cavern_threshold = 0.7f |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
s16 MapgenFlatParams::dungeon_ymax = 31000 |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
s16 MapgenFlatParams::dungeon_ymin = -31000 |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
s16 MapgenFlatParams::ground_level = 8 |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
float MapgenFlatParams::hill_steepness = 64.0f |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
float MapgenFlatParams::hill_threshold = 0.45f |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
float MapgenFlatParams::lake_steepness = 48.0f |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
float MapgenFlatParams::lake_threshold = -0.45f |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
s16 MapgenFlatParams::large_cave_depth = -33 |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
float MapgenFlatParams::large_cave_flooded = 0.5f |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
u16 MapgenFlatParams::large_cave_num_max = 2 |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
u16 MapgenFlatParams::large_cave_num_min = 0 |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
NoiseParams MapgenFlatParams::np_cave1 |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
NoiseParams MapgenFlatParams::np_cave2 |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
NoiseParams MapgenFlatParams::np_cavern |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
NoiseParams MapgenFlatParams::np_dungeons |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
NoiseParams MapgenFlatParams::np_filler_depth |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
NoiseParams MapgenFlatParams::np_terrain |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
u16 MapgenFlatParams::small_cave_num_max = 0 |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().
u16 MapgenFlatParams::small_cave_num_min = 0 |
Referenced by MapgenFlat::MapgenFlat(), readParams(), and writeParams().