]> git.lizzy.rs Git - minetest.git/blobdiff - src/mg_biome.h
Mgvalleys: use standard caves
[minetest.git] / src / mg_biome.h
index a0ed30d6e401d6aa8c074739d102be033c74c6d6..8d519f808cc175de92254c1c2dea33a72315e397 100644 (file)
@@ -20,9 +20,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #ifndef MG_BIOME_HEADER
 #define MG_BIOME_HEADER
 
-#include "mapgen.h"
-
-struct NoiseParams;
+#include "objdef.h"
+#include "nodedef.h"
 
 enum BiomeType
 {
@@ -42,6 +41,7 @@ class Biome : public ObjDef, public NodeResolver {
        content_t c_stone;
        content_t c_water_top;
        content_t c_water;
+       content_t c_river_water;
        content_t c_dust;
 
        s16 depth_top;
@@ -61,7 +61,7 @@ class BiomeManager : public ObjDefManager {
        static const char *OBJECT_TITLE;
 
        BiomeManager(IGameDef *gamedef);
-       ~BiomeManager();
+       virtual ~BiomeManager();
 
        const char *getObjectTitle() const
        {
@@ -73,11 +73,14 @@ class BiomeManager : public ObjDefManager {
                return new Biome;
        }
 
-       void clear();
+       virtual void clear();
 
        void calcBiomes(s16 sx, s16 sy, float *heat_map, float *humidity_map,
                s16 *height_map, u8 *biomeid_map);
        Biome *getBiome(float heat, float humidity, s16 y);
+
+private:
+       IGameDef *m_gamedef;
 };
 
 #endif