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.
55 virtual void genColumn(Mapgen *mg, int x, int z, int y1, int y2);
56 virtual int getSurfaceHeight(float noise_terrain);
59 class BiomeLiquid : public Biome {
60 virtual void genColumn(Mapgen *mg, int x, int z, int y1, int y2);
63 class BiomeHell : public Biome {
64 virtual void genColumn(Mapgen *mg, int x, int z, int y1, int y2);
65 virtual int getSurfaceHeight(float noise_terrain);
68 class BiomeAether : public Biome {
69 virtual void genColumn(Mapgen *mg, int x, int z, int y1, int y2);
70 virtual int getSurfaceHeight(float noise_terrain);
73 class BiomeSuperflat : public Biome {
74 virtual void genColumn(Mapgen *mg, int x, int z, int y1, int y2);
75 virtual int getSurfaceHeight(float noise_terrain);
78 class BiomeDefManager {
80 std::vector<float> bgroup_freqs;
81 std::vector<std::vector<Biome *> *> bgroups;
84 INodeDefManager *ndef;
86 BiomeDefManager(IGameDef *gamedef);
89 Biome *createBiome(BiomeTerrainType btt);
90 Biome *getBiome(float bgfreq, float heat, float humidity);
92 void addBiomeGroup(float freq);
93 void addBiome(int groupid, Biome *b);
94 void addDefaultBiomes();