summaryrefslogtreecommitdiffstats
path: root/src/Generating/CompoGen.h
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2016-02-05 22:45:45 +0100
committerLogicParrot <LogicParrot@users.noreply.github.com>2016-02-05 22:50:18 +0100
commitca6ef58b1ee8521e4b940ee4883dee714960e413 (patch)
tree8532add455224b07c07a759e3d906f50c0695888 /src/Generating/CompoGen.h
parentMerge pull request #2972 from marvinkopf/PlayerAutoComplete (diff)
downloadcuberite-ca6ef58b1ee8521e4b940ee4883dee714960e413.tar
cuberite-ca6ef58b1ee8521e4b940ee4883dee714960e413.tar.gz
cuberite-ca6ef58b1ee8521e4b940ee4883dee714960e413.tar.bz2
cuberite-ca6ef58b1ee8521e4b940ee4883dee714960e413.tar.lz
cuberite-ca6ef58b1ee8521e4b940ee4883dee714960e413.tar.xz
cuberite-ca6ef58b1ee8521e4b940ee4883dee714960e413.tar.zst
cuberite-ca6ef58b1ee8521e4b940ee4883dee714960e413.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/CompoGen.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/Generating/CompoGen.h b/src/Generating/CompoGen.h
index d4d38bfdd..b5108bac6 100644
--- a/src/Generating/CompoGen.h
+++ b/src/Generating/CompoGen.h
@@ -31,12 +31,12 @@ public:
m_BlockType(E_BLOCK_STONE),
m_IsBedrocked(true)
{}
-
+
protected:
BLOCKTYPE m_BlockType;
bool m_IsBedrocked;
-
+
// cTerrainCompositionGen overrides:
virtual void ComposeTerrain(cChunkDesc & a_ChunkDesc, const cChunkDesc::Shape & a_Shape) override;
virtual void InitializeCompoGen(cIniFile & a_IniFile) override;
@@ -51,9 +51,9 @@ class cCompoGenDebugBiomes :
{
public:
cCompoGenDebugBiomes(void) {}
-
+
protected:
-
+
// cTerrainCompositionGen overrides:
virtual void ComposeTerrain(cChunkDesc & a_ChunkDesc, const cChunkDesc::Shape & a_Shape) override;
} ;
@@ -67,7 +67,7 @@ class cCompoGenClassic :
{
public:
cCompoGenClassic(void);
-
+
protected:
int m_SeaLevel;
@@ -79,7 +79,7 @@ protected:
BLOCKTYPE m_BlockBeach;
BLOCKTYPE m_BlockBeachBottom;
BLOCKTYPE m_BlockSea;
-
+
// cTerrainCompositionGen overrides:
virtual void ComposeTerrain(cChunkDesc & a_ChunkDesc, const cChunkDesc::Shape & a_Shape) override;
virtual void InitializeCompoGen(cIniFile & a_IniFile) override;
@@ -94,13 +94,13 @@ class cCompoGenNether :
{
public:
cCompoGenNether(int a_Seed);
-
+
protected:
cNoise m_Noise1;
cNoise m_Noise2;
-
+
double m_MaxThreshold;
-
+
// cTerrainCompositionGen overrides:
virtual void ComposeTerrain(cChunkDesc & a_ChunkDesc, const cChunkDesc::Shape & a_Shape) override;
virtual void InitializeCompoGen(cIniFile & a_IniFile) override;
@@ -117,15 +117,15 @@ class cCompoGenCache :
public:
cCompoGenCache(cTerrainCompositionGenPtr a_Underlying, int a_CacheSize); // Doesn't take ownership of a_Underlying
~cCompoGenCache();
-
+
// cTerrainCompositionGen override:
virtual void ComposeTerrain(cChunkDesc & a_ChunkDesc, const cChunkDesc::Shape & a_Shape) override;
virtual void InitializeCompoGen(cIniFile & a_IniFile) override;
-
+
protected:
cTerrainCompositionGenPtr m_Underlying;
-
+
struct sCacheData
{
int m_ChunkX;
@@ -134,12 +134,12 @@ protected:
cChunkDesc::BlockNibbleBytes m_BlockMetas; // The metas are uncompressed, 1 meta per byte
cChunkDef::HeightMap m_HeightMap;
} ;
-
+
// To avoid moving large amounts of data for the MRU behavior, we MRU-ize indices to an array of the actual data
int m_CacheSize;
int * m_CacheOrder; // MRU-ized order, indices into m_CacheData array
sCacheData * m_CacheData; // m_CacheData[m_CacheOrder[0]] is the most recently used
-
+
// Cache statistics
int m_NumHits;
int m_NumMisses;