Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
mapgen_valleys.h
Go to the documentation of this file.
1/*
2Luanti
3SPDX-License-Identifier: LGPL-2.1-or-later
4Copyright (C) 2016-2019 Duane Robertson <duane@duanerobertson.com>
5Copyright (C) 2016-2019 paramat
6
7Based on Valleys Mapgen by Gael de Sailly
8(https://forum.minetest.net/viewtopic.php?f=9&t=11430)
9and mapgen_v7, mapgen_flat by kwolekr and paramat.
10
11Licensing changed by permission of Gael de Sailly.
12*/
13
14
15#pragma once
16
17#include "mapgen.h"
18
19#define MGVALLEYS_ALT_CHILL 0x01
20#define MGVALLEYS_HUMID_RIVERS 0x02
21#define MGVALLEYS_VARY_RIVER_DEPTH 0x04
22#define MGVALLEYS_ALT_DRY 0x08
23
24class BiomeManager;
26
28
29
68
69
Definition mg_biome.h:158
Definition mg_biome.h:202
Definition emerge.h:85
Definition mapgen.h:281
Definition mapgen_valleys.h:70
virtual void makeChunk(BlockMakeData *data)
Definition mapgen_valleys.cpp:196
int getSpawnLevelAtPoint(v2s16 p)
Definition mapgen_valleys.cpp:280
Noise * noise_inter_valley_fill
Definition mapgen_valleys.h:89
virtual int generateTerrain()
Definition mapgen_valleys.cpp:332
BiomeGenOriginal * m_bgen
Definition mapgen_valleys.h:83
Noise * noise_valley_profile
Definition mapgen_valleys.h:94
float river_depth_bed
Definition mapgen_valleys.h:86
float altitude_chill
Definition mapgen_valleys.h:85
MapgenValleys(MapgenValleysParams *params, EmergeParams *emerge)
Definition mapgen_valleys.cpp:44
virtual MapgenType getType() const
Definition mapgen_valleys.h:77
Noise * noise_inter_valley_slope
Definition mapgen_valleys.h:90
~MapgenValleys()
Definition mapgen_valleys.cpp:89
Noise * noise_valley_depth
Definition mapgen_valleys.h:93
Noise * noise_rivers
Definition mapgen_valleys.h:91
Noise * noise_terrain_height
Definition mapgen_valleys.h:92
float river_size_factor
Definition mapgen_valleys.h:87
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_VALLEYS
Definition mapgen.h:104
FlagDesc flagdesc_mapgen_valleys[]
Definition mapgen_valleys.cpp:35
Definition emerge.h:37
Definition string.h:67
Definition mapgen.h:114
Definition mapgen_valleys.h:30
NoiseParams np_cave1
Definition mapgen_valleys.h:56
float cavern_threshold
Definition mapgen_valleys.h:44
NoiseParams np_inter_valley_slope
Definition mapgen_valleys.h:50
s16 dungeon_ymin
Definition mapgen_valleys.h:45
NoiseParams np_inter_valley_fill
Definition mapgen_valleys.h:49
MapgenValleysParams()
Definition mapgen_valleys.cpp:101
s16 dungeon_ymax
Definition mapgen_valleys.h:46
u16 river_depth
Definition mapgen_valleys.h:32
s16 cavern_taper
Definition mapgen_valleys.h:43
float cave_width
Definition mapgen_valleys.h:35
void writeParams(Settings *settings) const
Definition mapgen_valleys.cpp:151
void setDefaultSettings(Settings *settings)
Definition mapgen_valleys.cpp:185
u16 large_cave_num_min
Definition mapgen_valleys.h:39
u16 small_cave_num_min
Definition mapgen_valleys.h:37
u16 altitude_chill
Definition mapgen_valleys.h:31
NoiseParams np_cavern
Definition mapgen_valleys.h:58
~MapgenValleysParams()=default
NoiseParams np_rivers
Definition mapgen_valleys.h:51
s16 cavern_limit
Definition mapgen_valleys.h:42
u16 large_cave_num_max
Definition mapgen_valleys.h:40
void readParams(const Settings *settings)
Definition mapgen_valleys.cpp:117
NoiseParams np_dungeons
Definition mapgen_valleys.h:59
NoiseParams np_cave2
Definition mapgen_valleys.h:57
u16 small_cave_num_max
Definition mapgen_valleys.h:38
NoiseParams np_valley_depth
Definition mapgen_valleys.h:53
float large_cave_flooded
Definition mapgen_valleys.h:41
u16 river_size
Definition mapgen_valleys.h:33
NoiseParams np_filler_depth
Definition mapgen_valleys.h:48
NoiseParams np_terrain_height
Definition mapgen_valleys.h:52
s16 large_cave_depth
Definition mapgen_valleys.h:36
NoiseParams np_valley_profile
Definition mapgen_valleys.h:54
Definition noise.h:119
static std::string p(std::string path)
Definition test_filesys.cpp:53