Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
mapgen_v5.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2014-2018 paramat
4// Copyright (C) 2014-2018 kwolekr, Ryan Kwolek <kwolekr@minetest.net>
5
6#pragma once
7
8#include "mapgen.h"
9
11#define MGV5_CAVERNS 0x01
12
13class BiomeManager;
14
16
48
49class MapgenV5 : public MapgenBasic
50{
51public:
52 MapgenV5(MapgenV5Params *params, EmergeParams *emerge);
53 ~MapgenV5();
54
55 virtual MapgenType getType() const { return MAPGEN_V5; }
56
57 virtual void makeChunk(BlockMakeData *data);
60
61private:
65};
Definition mg_biome.h:202
Definition emerge.h:85
Definition mapgen.h:281
Definition mapgen_v5.h:50
MapgenV5(MapgenV5Params *params, EmergeParams *emerge)
Definition mapgen_v5.cpp:32
Noise * noise_height
Definition mapgen_v5.h:63
int generateBaseTerrain()
Definition mapgen_v5.cpp:269
virtual MapgenType getType() const
Definition mapgen_v5.h:55
int getSpawnLevelAtPoint(v2s16 p)
Definition mapgen_v5.cpp:150
virtual void makeChunk(BlockMakeData *data)
Definition mapgen_v5.cpp:184
Noise * noise_factor
Definition mapgen_v5.h:62
~MapgenV5()
Definition mapgen_v5.cpp:65
Noise * noise_ground
Definition mapgen_v5.h:64
Definition noise.h:146
Definition settings.h:109
static const char * settings[]
Definition fontengine.cpp:27
core::vector2d< s16 > v2s16
Definition irr_v2d.h:12
MapgenType
Definition mapgen.h:102
@ MAPGEN_V5
Definition mapgen.h:106
FlagDesc flagdesc_mapgen_v5[]
Definition mapgen_v5.cpp:26
Definition emerge.h:37
Definition string.h:67
Definition mapgen.h:114
Definition mapgen_v5.h:18
s16 large_cave_depth
Definition mapgen_v5.h:20
void setDefaultSettings(Settings *settings)
Definition mapgen_v5.cpp:141
u16 small_cave_num_min
Definition mapgen_v5.h:21
NoiseParams np_dungeons
Definition mapgen_v5.h:39
NoiseParams np_factor
Definition mapgen_v5.h:33
s16 dungeon_ymax
Definition mapgen_v5.h:30
NoiseParams np_cavern
Definition mapgen_v5.h:38
s16 dungeon_ymin
Definition mapgen_v5.h:29
void readParams(const Settings *settings)
Definition mapgen_v5.cpp:87
NoiseParams np_height
Definition mapgen_v5.h:34
NoiseParams np_cave1
Definition mapgen_v5.h:36
float cavern_threshold
Definition mapgen_v5.h:28
NoiseParams np_ground
Definition mapgen_v5.h:35
s16 cavern_taper
Definition mapgen_v5.h:27
float large_cave_flooded
Definition mapgen_v5.h:25
u16 large_cave_num_min
Definition mapgen_v5.h:23
NoiseParams np_cave2
Definition mapgen_v5.h:37
s16 cavern_limit
Definition mapgen_v5.h:26
void writeParams(Settings *settings) const
Definition mapgen_v5.cpp:114
MapgenV5Params()
Definition mapgen_v5.cpp:74
u16 small_cave_num_max
Definition mapgen_v5.h:22
~MapgenV5Params()=default
NoiseParams np_filler_depth
Definition mapgen_v5.h:32
u16 large_cave_num_max
Definition mapgen_v5.h:24
float cave_width
Definition mapgen_v5.h:19
Definition noise.h:119
static std::string p(std::string path)
Definition test_filesys.cpp:53