summaryrefslogtreecommitdiffstats
path: root/src/Generating/FinishGen.h
diff options
context:
space:
mode:
authormBornand <63592189+mBornand@users.noreply.github.com>2020-11-14 13:24:31 +0100
committerGitHub <noreply@github.com>2020-11-14 13:24:31 +0100
commit58def8f7df8a01fe5a194cad9f47f1c96033c687 (patch)
treea4073d86d2a112735ca18503d28198903484756e /src/Generating/FinishGen.h
parentSome const and inheritance correctness (#5014) (diff)
downloadcuberite-58def8f7df8a01fe5a194cad9f47f1c96033c687.tar
cuberite-58def8f7df8a01fe5a194cad9f47f1c96033c687.tar.gz
cuberite-58def8f7df8a01fe5a194cad9f47f1c96033c687.tar.bz2
cuberite-58def8f7df8a01fe5a194cad9f47f1c96033c687.tar.lz
cuberite-58def8f7df8a01fe5a194cad9f47f1c96033c687.tar.xz
cuberite-58def8f7df8a01fe5a194cad9f47f1c96033c687.tar.zst
cuberite-58def8f7df8a01fe5a194cad9f47f1c96033c687.zip
Diffstat (limited to 'src/Generating/FinishGen.h')
-rw-r--r--src/Generating/FinishGen.h36
1 files changed, 5 insertions, 31 deletions
diff --git a/src/Generating/FinishGen.h b/src/Generating/FinishGen.h
index c12bc2392..d6458e4fc 100644
--- a/src/Generating/FinishGen.h
+++ b/src/Generating/FinishGen.h
@@ -123,7 +123,7 @@ public:
static void ParseConfigurationString(const AString & a_String, std::vector<BiomeInfo> & a_Output);
/** Parses an inifile in search for all clumps */
- static std::vector<BiomeInfo> ParseIniFile(cIniFile & a_IniFile, AString a_ClumpPrefix);
+ static std::vector<BiomeInfo> ParseIniFile(cIniFile & a_IniFile, const AString & a_ClumpPrefix);
protected:
cNoise m_Noise;
@@ -132,7 +132,7 @@ protected:
/** The maximum number of foliage per clump */
const int MAX_NUM_FOLIAGE = 8;
- /** The mininum number of foliage per clump */
+ /** The minimum number of foliage per clump */
const int MIN_NUM_FOLIAGE = 4;
/** The maximum range a foliage can be placed from the center of the clump */
@@ -181,35 +181,9 @@ protected:
// cFinishGen override:
virtual void GenFinish(cChunkDesc & a_ChunkDesc) override;
- int GetBiomeDensity(EMCSBiome a_Biome)
- {
- switch (a_Biome)
- {
- case biSavanna:
- case biSavannaM:
- case biSavannaPlateau:
- case biSavannaPlateauM:
- case biPlains:
- {
- return 70;
- }
-
- case biExtremeHillsEdge:
- case biExtremeHillsPlus:
- case biExtremeHills:
- case biExtremeHillsPlusM:
- case biExtremeHillsM:
- case biIceMountains:
- {
- return 3;
- }
-
- default:
- {
- return 20;
- }
- }
- }
+ static bool CanFernGrow(EMCSBiome a_Biome);
+ static bool CanLargeFernGrow(EMCSBiome a_Biome);
+ static int GetBiomeDensity(EMCSBiome a_Biome);
};