diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-10-21 17:37:03 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-10-21 17:37:03 +0200 |
commit | 283eda3c4eaa37acc242ccefdb3912768a80d14b (patch) | |
tree | fe9cdd385d5687c2f8bfe55d331ead942f28e4aa /src/Generating/StructGen.h | |
parent | Leaves are harvest-able. (diff) | |
parent | Updated ProtectionAreas (diff) | |
download | cuberite-283eda3c4eaa37acc242ccefdb3912768a80d14b.tar cuberite-283eda3c4eaa37acc242ccefdb3912768a80d14b.tar.gz cuberite-283eda3c4eaa37acc242ccefdb3912768a80d14b.tar.bz2 cuberite-283eda3c4eaa37acc242ccefdb3912768a80d14b.tar.lz cuberite-283eda3c4eaa37acc242ccefdb3912768a80d14b.tar.xz cuberite-283eda3c4eaa37acc242ccefdb3912768a80d14b.tar.zst cuberite-283eda3c4eaa37acc242ccefdb3912768a80d14b.zip |
Diffstat (limited to 'src/Generating/StructGen.h')
-rw-r--r-- | src/Generating/StructGen.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/Generating/StructGen.h b/src/Generating/StructGen.h index 96aa3e437..906fdd722 100644 --- a/src/Generating/StructGen.h +++ b/src/Generating/StructGen.h @@ -24,7 +24,7 @@ class cStructGenTrees : public cFinishGen { public: - cStructGenTrees(int a_Seed, cBiomeGen * a_BiomeGen, cTerrainHeightGen * a_HeightGen, cTerrainCompositionGen * a_CompositionGen) : + cStructGenTrees(int a_Seed, cBiomeGenPtr a_BiomeGen, cTerrainHeightGenPtr a_HeightGen, cTerrainCompositionGenPtr a_CompositionGen) : m_Seed(a_Seed), m_Noise(a_Seed), m_BiomeGen(a_BiomeGen), @@ -36,9 +36,9 @@ protected: int m_Seed; cNoise m_Noise; - cBiomeGen * m_BiomeGen; - cTerrainHeightGen * m_HeightGen; - cTerrainCompositionGen * m_CompositionGen; + cBiomeGenPtr m_BiomeGen; + cTerrainHeightGenPtr m_HeightGen; + cTerrainCompositionGenPtr m_CompositionGen; /** Generates and applies an image of a single tree. Parts of the tree inside the chunk are applied to a_BlockX. @@ -124,7 +124,7 @@ class cStructGenLakes : public cFinishGen { public: - cStructGenLakes(int a_Seed, BLOCKTYPE a_Fluid, cTerrainHeightGen & a_HeiGen, int a_Probability) : + cStructGenLakes(int a_Seed, BLOCKTYPE a_Fluid, cTerrainHeightGenPtr a_HeiGen, int a_Probability) : m_Noise(a_Seed), m_Seed(a_Seed), m_Fluid(a_Fluid), @@ -134,11 +134,11 @@ public: } protected: - cNoise m_Noise; - int m_Seed; - BLOCKTYPE m_Fluid; - cTerrainHeightGen & m_HeiGen; - int m_Probability; ///< Chance, 0 .. 100, of a chunk having the lake + cNoise m_Noise; + int m_Seed; + BLOCKTYPE m_Fluid; + cTerrainHeightGenPtr m_HeiGen; + int m_Probability; ///< Chance, 0 .. 100, of a chunk having the lake // cFinishGen override: virtual void GenFinish(cChunkDesc & a_ChunkDesc) override; |