Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
MapgenCarpathian Class Reference

#include <mapgen_carpathian.h>

+ Inheritance diagram for MapgenCarpathian:
+ Collaboration diagram for MapgenCarpathian:

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
 
Noisenoise_height1
 
Noisenoise_height2
 
Noisenoise_height3
 
Noisenoise_height4
 
Noisenoise_hills_terrain
 
Noisenoise_ridge_terrain
 
Noisenoise_step_terrain
 
Noisenoise_hills
 
Noisenoise_ridge_mnt
 
Noisenoise_step_mnt
 
Noisenoise_rivers = nullptr
 
Noisenoise_mnt_var
 
s32 grad_wl
 

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 MapgencreateMapgen (MapgenType mgtype, MapgenParams *params, EmergeParams *emerge)
 
static MapgenParamscreateMapgenParams (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
 
MMVManipvm = nullptr
 
EmergeParamsm_emerge = nullptr
 
const NodeDefManagerndef = nullptr
 
u32 blockseed
 
s16 * heightmap = nullptr
 
biome_tbiomemap = nullptr
 
v3s16 csize
 
BiomeGenbiomegen = nullptr
 
GenerateNotifier gennotify
 
- Protected Attributes inherited from MapgenBasic
BiomeManagerm_bmgr
 
Noisenoise_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
 

Constructor & Destructor Documentation

◆ MapgenCarpathian()

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()

Member Function Documentation

◆ generateTerrain()

◆ getLerp()

float MapgenCarpathian::getLerp ( float noise1,
float noise2,
float mod )
inlineprivate

Referenced by generateTerrain(), and getSpawnLevelAtPoint().

+ Here is the caller graph for this function:

◆ getSpawnLevelAtPoint()

int MapgenCarpathian::getSpawnLevelAtPoint ( v2s16 p)
virtual

◆ getSteps()

float MapgenCarpathian::getSteps ( float noise)
private

Referenced by generateTerrain(), and getSpawnLevelAtPoint().

+ Here is the caller graph for this function:

◆ getType()

virtual MapgenType MapgenCarpathian::getType ( ) const
inlinevirtual

Reimplemented from Mapgen.

References MAPGEN_CARPATHIAN.

◆ makeChunk()

Member Data Documentation

◆ base_level

float MapgenCarpathian::base_level
private

◆ grad_wl

s32 MapgenCarpathian::grad_wl
private

◆ noise_height1

Noise* MapgenCarpathian::noise_height1
private

◆ noise_height2

Noise* MapgenCarpathian::noise_height2
private

◆ noise_height3

Noise* MapgenCarpathian::noise_height3
private

◆ noise_height4

Noise* MapgenCarpathian::noise_height4
private

◆ noise_hills

Noise* MapgenCarpathian::noise_hills
private

◆ noise_hills_terrain

Noise* MapgenCarpathian::noise_hills_terrain
private

◆ noise_mnt_var

Noise* MapgenCarpathian::noise_mnt_var
private

◆ noise_ridge_mnt

Noise* MapgenCarpathian::noise_ridge_mnt
private

◆ noise_ridge_terrain

Noise* MapgenCarpathian::noise_ridge_terrain
private

◆ noise_rivers

Noise* MapgenCarpathian::noise_rivers = nullptr
private

◆ noise_step_mnt

Noise* MapgenCarpathian::noise_step_mnt
private

◆ noise_step_terrain

Noise* MapgenCarpathian::noise_step_terrain
private

◆ river_depth

float MapgenCarpathian::river_depth
private

◆ river_width

float MapgenCarpathian::river_width
private

◆ valley_width

float MapgenCarpathian::valley_width
private

The documentation for this class was generated from the following files: