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.
44 virtual void genColumn(Mapgen *mg, int x, int z, int y1, int y2);
45 virtual int getSurfaceHeight(float noise_terrain);
48 class BiomeOcean : public Biome {
49 virtual void genColumn(Mapgen *mg, int x, int z, int y1, int y2);
52 class BiomeHell : public Biome {
53 virtual void genColumn(Mapgen *mg, int x, int z, int y1, int y2);
54 virtual int getSurfaceHeight(float noise_terrain);
57 class BiomeSuperflat : public Biome {
58 virtual void genColumn(Mapgen *mg, int x, int z, int y1, int y2);
59 virtual int getSurfaceHeight(float noise_terrain);
62 class BiomeDefManager {
64 std::vector<float> bgroup_freqs;
65 std::vector<std::vector<Biome *> *> bgroups;
68 INodeDefManager *ndef;
70 BiomeDefManager(IGameDef *gamedef);
73 Biome *getBiome(float bgfreq, float heat, float humidity);
76 void addDefaultBiomes();