diff options
| author | kwolekr <mirrorisim@gmail.com> | 2012-12-22 00:34:35 -0500 |
|---|---|---|
| committer | Perttu Ahola <celeron55@gmail.com> | 2013-01-21 21:41:37 +0200 |
| commit | d5029958b9017ad89775bc4f68c4de3db603e618 (patch) | |
| tree | 757d6e545217c3b0da34d66d00f1e5a99aeb22a2 /src/biome.h | |
| parent | bddd5f2b98a56fc735d5687ecd0b43767aec8066 (diff) | |
| download | dragonfireclient-d5029958b9017ad89775bc4f68c4de3db603e618.tar.xz | |
Readded and optimized mapgen V6
Diffstat (limited to 'src/biome.h')
| -rw-r--r-- | src/biome.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/biome.h b/src/biome.h index bb35dd1c4..3bf7a5d34 100644 --- a/src/biome.h +++ b/src/biome.h @@ -42,7 +42,8 @@ public: MapNode n_top; MapNode n_filler; s16 ntopnodes; - s16 flags; + s8 groupid; + s8 flags; s16 height_min; s16 height_max; float heat_min; @@ -52,26 +53,26 @@ public: std::string name; NoiseParams *np; - virtual void genColumn(Mapgen *mg, int x, int z, int y1, int y2); + virtual void genColumn(MapgenV7 *mg, int x, int z, int y1, int y2); virtual int getSurfaceHeight(float noise_terrain); }; class BiomeLiquid : public Biome { - virtual void genColumn(Mapgen *mg, int x, int z, int y1, int y2); + virtual void genColumn(MapgenV7 *mg, int x, int z, int y1, int y2); }; class BiomeHell : public Biome { - virtual void genColumn(Mapgen *mg, int x, int z, int y1, int y2); + virtual void genColumn(MapgenV7 *mg, int x, int z, int y1, int y2); virtual int getSurfaceHeight(float noise_terrain); }; class BiomeAether : public Biome { - virtual void genColumn(Mapgen *mg, int x, int z, int y1, int y2); + virtual void genColumn(MapgenV7 *mg, int x, int z, int y1, int y2); virtual int getSurfaceHeight(float noise_terrain); }; class BiomeSuperflat : public Biome { - virtual void genColumn(Mapgen *mg, int x, int z, int y1, int y2); + virtual void genColumn(MapgenV7 *mg, int x, int z, int y1, int y2); virtual int getSurfaceHeight(float noise_terrain); }; @@ -90,7 +91,7 @@ public: Biome *getBiome(float bgfreq, float heat, float humidity); void addBiomeGroup(float freq); - void addBiome(int groupid, Biome *b); + void addBiome(Biome *b); void addDefaultBiomes(); }; |
