diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-05-31 22:34:58 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-05-31 22:34:58 +0200 |
commit | e8c905f0781957298528e233e43027001afa62c9 (patch) | |
tree | 0b98d75aea502bc009a59734ce8c53e92534ff6e /source/BioGen.h | |
parent | cWorld::UnloadUnusedChunks() exported to Lua (diff) | |
download | cuberite-e8c905f0781957298528e233e43027001afa62c9.tar cuberite-e8c905f0781957298528e233e43027001afa62c9.tar.gz cuberite-e8c905f0781957298528e233e43027001afa62c9.tar.bz2 cuberite-e8c905f0781957298528e233e43027001afa62c9.tar.lz cuberite-e8c905f0781957298528e233e43027001afa62c9.tar.xz cuberite-e8c905f0781957298528e233e43027001afa62c9.tar.zst cuberite-e8c905f0781957298528e233e43027001afa62c9.zip |
Diffstat (limited to '')
-rw-r--r-- | source/BioGen.h | 41 |
1 files changed, 23 insertions, 18 deletions
diff --git a/source/BioGen.h b/source/BioGen.h index e510d0867..e701b6ec9 100644 --- a/source/BioGen.h +++ b/source/BioGen.h @@ -39,24 +39,6 @@ protected: -class cBioGenDistortedVoronoi :
- public cBiomeGen
-{
-public:
- cBioGenDistortedVoronoi(int a_Seed) : m_Seed(a_Seed) {}
-
-protected:
-
- int m_Seed;
-
- // cBiomeGen override:
- virtual void GenBiomes(int a_ChunkX, int a_ChunkZ, cChunkDef::BiomeMap & a_BiomeMap) override;
-} ;
-
-
-
-
-
/// Base class for generators that use a list of available biomes. This class takes care of the list.
class cBiomeGenList :
public cBiomeGen
@@ -128,3 +110,26 @@ protected: +
+class cBioGenDistortedVoronoi :
+ public cBioGenVoronoi
+{
+public:
+ cBioGenDistortedVoronoi(int a_Seed, int a_CellSize, const AString & a_Biomes) :
+ cBioGenVoronoi(a_Seed, a_CellSize, a_Biomes)
+ {
+ }
+
+protected:
+
+ // cBiomeGen override:
+ virtual void GenBiomes(int a_ChunkX, int a_ChunkZ, cChunkDef::BiomeMap & a_BiomeMap) override;
+
+ /// Distorts the coords using a Perlin-like noise
+ void Distort(int a_BlockX, int a_BlockZ, int & a_DistortedX, int & a_DistortedZ);
+} ;
+
+
+
+
+
|