summaryrefslogtreecommitdiffstats
path: root/src/BiomeDef.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-11-14 22:33:54 +0100
committerHowaner <franzi.moos@googlemail.com>2014-11-14 22:33:54 +0100
commita0e1e43fc187d79021b4e84e70729255f7f690e2 (patch)
tree933304dcec7bc698bf7c0f70fe8938d46c642113 /src/BiomeDef.h
parent... in this world (diff)
parentNoise3D: Added jungles. (diff)
downloadcuberite-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.h')
-rw-r--r--src/BiomeDef.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/BiomeDef.h b/src/BiomeDef.h
index f929596e9..84751cfd7 100644
--- a/src/BiomeDef.h
+++ b/src/BiomeDef.h
@@ -113,5 +113,20 @@ extern AString BiomeToString(int a_Biome);
/** Returns true if the biome has no downfall - deserts and savannas */
extern bool IsBiomeNoDownfall(EMCSBiome a_Biome);
+/** Returns true if the biome is an ocean biome. */
+inline bool IsBiomeOcean(int a_Biome)
+{
+ return ((a_Biome == biOcean) || (a_Biome == biDeepOcean));
+}
+
+/** Returns true if the biome is very cold
+(has snow on ground everywhere, turns top water to ice, has snowfall instead of rain everywhere).
+Doesn't report mildly cold biomes (where it snows above certain elevation), use IsBiomeCold() for those. */
+extern bool IsBiomeVeryCold(EMCSBiome a_Biome);
+
+/** Returns true if the biome is cold
+(has snow and snowfall at higher elevations but not at regular heights).
+Doesn't report Very Cold biomes, use IsBiomeVeryCold() for those. */
+extern bool IsBiomeCold(EMCSBiome a_Biome);
// tolua_end