diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-11-14 22:33:54 +0100 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-11-14 22:33:54 +0100 |
commit | a0e1e43fc187d79021b4e84e70729255f7f690e2 (patch) | |
tree | 933304dcec7bc698bf7c0f70fe8938d46c642113 /src/BiomeDef.cpp | |
parent | ... in this world (diff) | |
parent | Noise3D: Added jungles. (diff) | |
download | cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar.gz cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar.bz2 cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar.lz cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar.xz cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar.zst cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.zip |
Diffstat (limited to 'src/BiomeDef.cpp')
-rw-r--r-- | src/BiomeDef.cpp | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/src/BiomeDef.cpp b/src/BiomeDef.cpp index 02f8c2232..188e06173 100644 --- a/src/BiomeDef.cpp +++ b/src/BiomeDef.cpp @@ -160,3 +160,65 @@ bool IsBiomeNoDownfall(EMCSBiome a_Biome) } } } + + + + + +bool IsBiomeVeryCold(EMCSBiome a_Biome) +{ + switch (a_Biome) + { + case biFrozenOcean: + case biFrozenRiver: + case biIcePlains: + case biIceMountains: + case biColdBeach: + case biColdTaiga: + case biColdTaigaHills: + case biIcePlainsSpikes: + case biColdTaigaM: + { + return true; + } + default: + { + return false; + } + } +} + + + + +bool IsBiomeCold(EMCSBiome a_Biome) +{ + switch (a_Biome) + { + case biExtremeHills: + case biTaiga: + case biTaigaHills: + case biExtremeHillsEdge: + case biStoneBeach: + case biMegaTaiga: + case biMegaTaigaHills: + case biExtremeHillsPlus: + case biExtremeHillsM: + case biTaigaM: + case biColdTaigaM: + case biMegaSpruceTaiga: + case biMegaSpruceTaigaHills: + case biExtremeHillsPlusM: + { + return true; + } + default: + { + return false; + } + } +} + + + + |