Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
mapgen_flat.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2015-2020 paramat
4// Copyright (C) 2015-2016 kwolekr, Ryan Kwolek <kwolekr@minetest.net>
5
6#pragma once
7
8#include "mapgen.h"
9
11#define MGFLAT_LAKES 0x01
12#define MGFLAT_HILLS 0x02
13#define MGFLAT_CAVERNS 0x04
14
15class BiomeManager;
16
18
54
55class MapgenFlat : public MapgenBasic
56{
57public:
60
61 virtual MapgenType getType() const { return MAPGEN_FLAT; }
62
63 virtual void makeChunk(BlockMakeData *data);
65 s16 generateTerrain();
66
67private:
73
75};
Definition mg_biome.h:203
Definition emerge.h:85
Definition mapgen.h:281
Definition mapgen_flat.h:56
virtual void makeChunk(BlockMakeData *data)
Definition mapgen_flat.cpp:192
float lake_steepness
Definition mapgen_flat.h:70
s16 generateTerrain()
Definition mapgen_flat.cpp:275
Noise * noise_terrain
Definition mapgen_flat.h:74
float lake_threshold
Definition mapgen_flat.h:69
float hill_steepness
Definition mapgen_flat.h:72
int getSpawnLevelAtPoint(v2s16 p)
Definition mapgen_flat.cpp:162
s16 ground_level
Definition mapgen_flat.h:68
float hill_threshold
Definition mapgen_flat.h:71
~MapgenFlat()
Definition mapgen_flat.cpp:73
MapgenFlat(MapgenFlatParams *params, EmergeParams *emerge)
Definition mapgen_flat.cpp:36
virtual MapgenType getType() const
Definition mapgen_flat.h:61
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_FLAT
Definition mapgen.h:107
FlagDesc flagdesc_mapgen_flat[]
Definition mapgen_flat.cpp:26
Definition emerge.h:37
Definition string.h:67
Definition mapgen_flat.h:20
NoiseParams np_terrain
Definition mapgen_flat.h:40
float lake_steepness
Definition mapgen_flat.h:23
NoiseParams np_cave1
Definition mapgen_flat.h:43
s16 cavern_limit
Definition mapgen_flat.h:34
~MapgenFlatParams()=default
s16 large_cave_depth
Definition mapgen_flat.h:32
void readParams(const Settings *settings)
Definition mapgen_flat.cpp:93
u16 small_cave_num_max
Definition mapgen_flat.h:29
void writeParams(Settings *settings) const
Definition mapgen_flat.cpp:123
u16 large_cave_num_min
Definition mapgen_flat.h:30
float large_cave_flooded
Definition mapgen_flat.h:33
NoiseParams np_filler_depth
Definition mapgen_flat.h:41
float cavern_threshold
Definition mapgen_flat.h:36
s16 ground_level
Definition mapgen_flat.h:21
float lake_threshold
Definition mapgen_flat.h:22
void setDefaultSettings(Settings *settings)
Definition mapgen_flat.cpp:153
float hill_steepness
Definition mapgen_flat.h:25
NoiseParams np_dungeons
Definition mapgen_flat.h:45
NoiseParams np_cavern
Definition mapgen_flat.h:42
NoiseParams np_cave2
Definition mapgen_flat.h:44
s16 dungeon_ymax
Definition mapgen_flat.h:38
s16 dungeon_ymin
Definition mapgen_flat.h:37
u16 small_cave_num_min
Definition mapgen_flat.h:28
u16 large_cave_num_max
Definition mapgen_flat.h:31
float hill_threshold
Definition mapgen_flat.h:24
MapgenFlatParams()
Definition mapgen_flat.cpp:82
float cave_width
Definition mapgen_flat.h:27
s16 cavern_taper
Definition mapgen_flat.h:35
Definition mapgen.h:114
Definition noise.h:119
static std::string p(std::string path)
Definition test_filesys.cpp:53