#ifndef MG_BIOME_HEADER
#define MG_BIOME_HEADER
-#include "mapgen.h"
-
-struct NoiseParams;
+#include "objdef.h"
+#include "nodedef.h"
enum BiomeType
{
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;
static const char *OBJECT_TITLE;
BiomeManager(IGameDef *gamedef);
- ~BiomeManager();
+ virtual ~BiomeManager();
const char *getObjectTitle() const
{
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