3 Copyright (C) 2010-2011 kwolekr, Ryan Kwolek <kwolekr2@cs.scranton.edu>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation; either version 2.1 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
56 virtual void genColumn(Mapgen *mg, int x, int z, int y1, int y2);
57 virtual int getSurfaceHeight(float noise_terrain);
60 class BiomeLiquid : public Biome {
61 virtual void genColumn(Mapgen *mg, int x, int z, int y1, int y2);
64 class BiomeHell : public Biome {
65 virtual void genColumn(Mapgen *mg, int x, int z, int y1, int y2);
66 virtual int getSurfaceHeight(float noise_terrain);
69 class BiomeAether : public Biome {
70 virtual void genColumn(Mapgen *mg, int x, int z, int y1, int y2);
71 virtual int getSurfaceHeight(float noise_terrain);
74 class BiomeSuperflat : public Biome {
75 virtual void genColumn(Mapgen *mg, int x, int z, int y1, int y2);
76 virtual int getSurfaceHeight(float noise_terrain);
79 class BiomeDefManager {
81 std::vector<float> bgroup_freqs;
82 std::vector<std::vector<Biome *> *> bgroups;
85 INodeDefManager *ndef;
87 BiomeDefManager(IGameDef *gamedef);
90 Biome *createBiome(BiomeTerrainType btt);
91 Biome *getBiome(float bgfreq, float heat, float humidity);
93 void addBiomeGroup(float freq);
94 void addBiome(Biome *b);
95 void addDefaultBiomes();