summaryrefslogtreecommitdiffstats
path: root/source/Generating/Noise3DGenerator.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-27 15:38:40 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-27 15:38:40 +0200
commitfb58acf27c5d30642c85dfbaf9f10e90f8b23e71 (patch)
tree7c4487c47d940502d82fe0577156d763a4b37ede /source/Generating/Noise3DGenerator.h
parentFixed a few possible crashes with out-of-bounds Y coords (diff)
downloadcuberite-fb58acf27c5d30642c85dfbaf9f10e90f8b23e71.tar
cuberite-fb58acf27c5d30642c85dfbaf9f10e90f8b23e71.tar.gz
cuberite-fb58acf27c5d30642c85dfbaf9f10e90f8b23e71.tar.bz2
cuberite-fb58acf27c5d30642c85dfbaf9f10e90f8b23e71.tar.lz
cuberite-fb58acf27c5d30642c85dfbaf9f10e90f8b23e71.tar.xz
cuberite-fb58acf27c5d30642c85dfbaf9f10e90f8b23e71.tar.zst
cuberite-fb58acf27c5d30642c85dfbaf9f10e90f8b23e71.zip
Diffstat (limited to 'source/Generating/Noise3DGenerator.h')
-rw-r--r--source/Generating/Noise3DGenerator.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/source/Generating/Noise3DGenerator.h b/source/Generating/Noise3DGenerator.h
new file mode 100644
index 000000000..3a6b6dff4
--- /dev/null
+++ b/source/Generating/Noise3DGenerator.h
@@ -0,0 +1,39 @@
+
+// Noise3DGenerator.h
+
+// Generates terrain using 3D noise, rather than composing. Is a test.
+
+
+
+
+#pragma once
+
+#include "ChunkGenerator.h"
+#include "ChunkDesc.h"
+#include "../Noise.h"
+
+
+
+
+
+class cNoise3DGenerator :
+ public cChunkGenerator::cGenerator
+{
+ typedef cChunkGenerator::cGenerator super;
+
+public:
+ cNoise3DGenerator(cChunkGenerator & a_ChunkGenerator);
+ virtual ~cNoise3DGenerator();
+
+ virtual void Initialize(cWorld * a_World, cIniFile & a_IniFile) override;
+ virtual void GenerateBiomes(int a_ChunkX, int a_ChunkZ, cChunkDef::BiomeMap & a_BiomeMap) override;
+ virtual void DoGenerate(int a_ChunkX, int a_ChunkZ, cChunkDesc & a_ChunkDesc) override;
+
+protected:
+ cNoise m_Noise1;
+ cNoise m_Noise2;
+} ;
+
+
+
+