From ec8c05066600b6c9744f8e9e61650505992bf63f Mon Sep 17 00:00:00 2001 From: Mattes D Date: Sun, 26 Oct 2014 18:17:04 +0100 Subject: Added IsBiomeVeryCold() and IsBiomeCold() functions. --- src/BiomeDef.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/BiomeDef.h') diff --git a/src/BiomeDef.h b/src/BiomeDef.h index f929596e9..dfab50663 100644 --- a/src/BiomeDef.h +++ b/src/BiomeDef.h @@ -113,5 +113,14 @@ 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 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 -- cgit v1.2.3 From 7e1d603080146047bade80ee70982dbe569cdf30 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Sun, 26 Oct 2014 19:58:16 +0100 Subject: Added new biomegen: Grown --- src/BiomeDef.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/BiomeDef.h') diff --git a/src/BiomeDef.h b/src/BiomeDef.h index dfab50663..84751cfd7 100644 --- a/src/BiomeDef.h +++ b/src/BiomeDef.h @@ -113,6 +113,12 @@ 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. */ -- cgit v1.2.3