summaryrefslogtreecommitdiffstats
path: root/src/BiomeDef.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-26 18:17:04 +0100
committerMattes D <github@xoft.cz>2014-10-26 18:17:04 +0100
commitec8c05066600b6c9744f8e9e61650505992bf63f (patch)
tree97effa6f30b65b3b23427e4445cf0496e003dd81 /src/BiomeDef.cpp
parentMerge pull request #1565 from mc-server/MergedIniFile (diff)
downloadcuberite-ec8c05066600b6c9744f8e9e61650505992bf63f.tar
cuberite-ec8c05066600b6c9744f8e9e61650505992bf63f.tar.gz
cuberite-ec8c05066600b6c9744f8e9e61650505992bf63f.tar.bz2
cuberite-ec8c05066600b6c9744f8e9e61650505992bf63f.tar.lz
cuberite-ec8c05066600b6c9744f8e9e61650505992bf63f.tar.xz
cuberite-ec8c05066600b6c9744f8e9e61650505992bf63f.tar.zst
cuberite-ec8c05066600b6c9744f8e9e61650505992bf63f.zip
Diffstat (limited to 'src/BiomeDef.cpp')
-rw-r--r--src/BiomeDef.cpp62
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;
+ }
+ }
+}
+
+
+
+