@@ -37,11 +37,12 @@ class GenerateNotifier;
37
37
TODO(hmmmm): Remove dependency on biomes
38
38
TODO(hmmmm): Find alternative to overgeneration as solution for sunlight issue
39
39
*/
40
- class CavesNoiseIntersection {
40
+ class CavesNoiseIntersection
41
+ {
41
42
public:
42
43
CavesNoiseIntersection (INodeDefManager *nodedef, BiomeManager *biomemgr,
43
- v3s16 chunksize, NoiseParams *np_cave1, NoiseParams *np_cave2,
44
- s32 seed, float cave_width);
44
+ v3s16 chunksize, NoiseParams *np_cave1, NoiseParams *np_cave2,
45
+ s32 seed, float cave_width);
45
46
~CavesNoiseIntersection ();
46
47
47
48
void generateCaves (MMVManip *vm, v3s16 nmin, v3s16 nmax, u8 *biomemap);
@@ -65,10 +66,12 @@ class CavesNoiseIntersection {
65
66
/*
66
67
CavernsNoise is a cave digging algorithm
67
68
*/
68
- class CavernsNoise {
69
+ class CavernsNoise
70
+ {
69
71
public:
70
72
CavernsNoise (INodeDefManager *nodedef, v3s16 chunksize, NoiseParams *np_cavern,
71
- s32 seed, float cavern_limit, float cavern_taper, float cavern_threshold);
73
+ s32 seed, float cavern_limit, float cavern_taper,
74
+ float cavern_threshold);
72
75
~CavernsNoise ();
73
76
74
77
bool generateCaverns (MMVManip *vm, v3s16 nmin, v3s16 nmax);
@@ -105,7 +108,8 @@ class CavernsNoise {
105
108
This algorithm is very fast, executing in less than 1ms on average for an
106
109
80x80x80 chunk of map on a modern processor.
107
110
*/
108
- class CavesRandomWalk {
111
+ class CavesRandomWalk
112
+ {
109
113
public:
110
114
MMVManip *vm;
111
115
INodeDefManager *ndef;
@@ -150,18 +154,16 @@ class CavesRandomWalk {
150
154
151
155
// ndef is a mandatory parameter.
152
156
// If gennotify is NULL, generation events are not logged.
153
- CavesRandomWalk (INodeDefManager *ndef,
154
- GenerateNotifier *gennotify = NULL ,
155
- s32 seed = 0 ,
156
- int water_level = 1 ,
157
- content_t water_source = CONTENT_IGNORE,
158
- content_t lava_source = CONTENT_IGNORE);
157
+ CavesRandomWalk (INodeDefManager *ndef, GenerateNotifier *gennotify = NULL ,
158
+ s32 seed = 0 , int water_level = 1 ,
159
+ content_t water_source = CONTENT_IGNORE,
160
+ content_t lava_source = CONTENT_IGNORE);
159
161
160
162
// vm and ps are mandatory parameters.
161
163
// If heightmap is NULL, the surface level at all points is assumed to
162
164
// be water_level.
163
165
void makeCave (MMVManip *vm, v3s16 nmin, v3s16 nmax, PseudoRandom *ps,
164
- bool is_large_cave, int max_stone_height, s16 *heightmap);
166
+ bool is_large_cave, int max_stone_height, s16 *heightmap);
165
167
166
168
private:
167
169
void makeTunnel (bool dirswitch);
@@ -183,7 +185,8 @@ class CavesRandomWalk {
183
185
tl;dr,
184
186
*** DO NOT TOUCH THIS CLASS UNLESS YOU KNOW WHAT YOU ARE DOING ***
185
187
*/
186
- class CavesV6 {
188
+ class CavesV6
189
+ {
187
190
public:
188
191
MMVManip *vm;
189
192
INodeDefManager *ndef;
@@ -222,18 +225,16 @@ class CavesV6 {
222
225
223
226
// ndef is a mandatory parameter.
224
227
// If gennotify is NULL, generation events are not logged.
225
- CavesV6 (INodeDefManager *ndef,
226
- GenerateNotifier *gennotify = NULL ,
227
- int water_level = 1 ,
228
- content_t water_source = CONTENT_IGNORE,
229
- content_t lava_source = CONTENT_IGNORE);
228
+ CavesV6 (INodeDefManager *ndef, GenerateNotifier *gennotify = NULL ,
229
+ int water_level = 1 , content_t water_source = CONTENT_IGNORE,
230
+ content_t lava_source = CONTENT_IGNORE);
230
231
231
232
// vm, ps, and ps2 are mandatory parameters.
232
233
// If heightmap is NULL, the surface level at all points is assumed to
233
234
// be water_level.
234
- void makeCave (MMVManip *vm, v3s16 nmin, v3s16 nmax,
235
- PseudoRandom *ps, PseudoRandom *ps2 ,
236
- bool is_large_cave, int max_stone_height, s16 *heightmap = NULL );
235
+ void makeCave (MMVManip *vm, v3s16 nmin, v3s16 nmax, PseudoRandom *ps,
236
+ PseudoRandom *ps2, bool is_large_cave, int max_stone_height ,
237
+ s16 *heightmap = NULL );
237
238
238
239
private:
239
240
void makeTunnel (bool dirswitch);
0 commit comments