diff options
author | Mattes D <github@xoft.cz> | 2014-05-09 18:30:39 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-05-09 18:30:39 +0200 |
commit | ea593dcaad59bf6e91da59ec5dadc64b9b803580 (patch) | |
tree | 6d668d5449db9de7660bd9597ac0aed12e115466 /src/Generating/Ravines.h | |
parent | cWormNestCaves rewritten using cGridStructGen. (diff) | |
download | cuberite-ea593dcaad59bf6e91da59ec5dadc64b9b803580.tar cuberite-ea593dcaad59bf6e91da59ec5dadc64b9b803580.tar.gz cuberite-ea593dcaad59bf6e91da59ec5dadc64b9b803580.tar.bz2 cuberite-ea593dcaad59bf6e91da59ec5dadc64b9b803580.tar.lz cuberite-ea593dcaad59bf6e91da59ec5dadc64b9b803580.tar.xz cuberite-ea593dcaad59bf6e91da59ec5dadc64b9b803580.tar.zst cuberite-ea593dcaad59bf6e91da59ec5dadc64b9b803580.zip |
Diffstat (limited to 'src/Generating/Ravines.h')
-rw-r--r-- | src/Generating/Ravines.h | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/src/Generating/Ravines.h b/src/Generating/Ravines.h index c76b9f19f..30b47e9ec 100644 --- a/src/Generating/Ravines.h +++ b/src/Generating/Ravines.h @@ -9,7 +9,7 @@ #pragma once -#include "ComposableGenerator.h" +#include "GridStructGen.h" #include "../Noise.h" @@ -17,28 +17,22 @@ class cStructGenRavines : - public cFinishGen + public cGridStructGen { + typedef cGridStructGen super; + public: cStructGenRavines(int a_Seed, int a_Size); - ~cStructGenRavines(); protected: class cRavine; // fwd: Ravines.cpp - typedef std::list<cRavine *> cRavines; - - cNoise m_Noise; - int m_Size; // Max size, in blocks, of the ravines generated - cRavines m_Cache; - /// Clears everything from the cache - void ClearCache(void); + cNoise m_Noise; + int m_Size; // Max size, in blocks, of the ravines generated - /// Returns all ravines that *may* intersect the given chunk. All the ravines are valid until the next call to this function. - void GetRavinesForChunk(int a_ChunkX, int a_ChunkZ, cRavines & a_Ravines); - - // cFinishGen override: - virtual void GenFinish(cChunkDesc & a_ChunkDesc) override; + + // cGridStructGen overrides: + virtual cStructurePtr CreateStructure(int a_OriginX, int a_OriginZ) override; } ; |