]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/cavegen.h
Fix some setting documentation
[dragonfireclient.git] / src / cavegen.h
index 38ef57c5a8ecbc0bfbac3e88fe067bbc1992dcf6..a1124711b93389e18d8ac1df2ed2fff99964e89f 100644 (file)
@@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #define CAVEGEN_HEADER
 
 #define VMANIP_FLAG_CAVE VOXELFLAG_CHECKED1
+#define MGV5_LAVA_DEPTH -256
 #define MGV7_LAVA_DEPTH -256
 
 class MapgenV5;
@@ -29,7 +30,7 @@ class MapgenV7;
 
 class CaveV5 {
 public:
-       MapgenV5 *mg;
+       Mapgen *mg;
        MMVManip *vm;
        INodeDefManager *ndef;
 
@@ -64,12 +65,13 @@ class CaveV5 {
        content_t c_ice;
 
        int water_level;
+       int ystride;
 
        CaveV5() {}
-       CaveV5(MapgenV5 *mg, PseudoRandom *ps);
+       CaveV5(Mapgen *mg, PseudoRandom *ps);
        void makeCave(v3s16 nmin, v3s16 nmax, int max_stone_height);
        void makeTunnel(bool dirswitch);
-       void carveRoute(v3f vec, float f, bool randomize_xz, bool is_ravine);
+       void carveRoute(v3f vec, float f, bool randomize_xz);
 };
 
 class CaveV6 {
@@ -113,7 +115,7 @@ class CaveV6 {
        CaveV6(MapgenV6 *mg, PseudoRandom *ps, PseudoRandom *ps2, bool large_cave);
        void makeCave(v3s16 nmin, v3s16 nmax, int max_stone_height);
        void makeTunnel(bool dirswitch);
-       void carveRoute(v3f vec, float f, bool randomize_xz);
+       void carveRoute(v3f vec, float f, bool randomize_xz, bool tunnel_above_ground);
 };
 
 class CaveV7 {
@@ -158,7 +160,7 @@ class CaveV7 {
        CaveV7(MapgenV7 *mg, PseudoRandom *ps);
        void makeCave(v3s16 nmin, v3s16 nmax, int max_stone_height);
        void makeTunnel(bool dirswitch);
-       void carveRoute(v3f vec, float f, bool randomize_xz, bool is_ravine);
+       void carveRoute(v3f vec, float f, bool randomize_xz);
 };
 
 #endif