summaryrefslogtreecommitdiffstats
path: root/source/HeiGen.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-02 14:19:20 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-02 14:19:20 +0200
commit7abaede2457e494290882d9795873aab2309da65 (patch)
tree80542428c66d74fd6fc7c23d55c35a9666e92012 /source/HeiGen.h
parentCore: fixed old API (diff)
downloadcuberite-7abaede2457e494290882d9795873aab2309da65.tar
cuberite-7abaede2457e494290882d9795873aab2309da65.tar.gz
cuberite-7abaede2457e494290882d9795873aab2309da65.tar.bz2
cuberite-7abaede2457e494290882d9795873aab2309da65.tar.lz
cuberite-7abaede2457e494290882d9795873aab2309da65.tar.xz
cuberite-7abaede2457e494290882d9795873aab2309da65.tar.zst
cuberite-7abaede2457e494290882d9795873aab2309da65.zip
Diffstat (limited to 'source/HeiGen.h')
-rw-r--r--source/HeiGen.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/source/HeiGen.h b/source/HeiGen.h
index aca2fd593..869f1c67a 100644
--- a/source/HeiGen.h
+++ b/source/HeiGen.h
@@ -62,3 +62,40 @@ protected:
+
+class cHeiGenBiomal :
+ public cTerrainHeightGen
+{
+public:
+ cHeiGenBiomal(int a_Seed, cBiomeGen & a_BiomeGen) :
+ m_Noise(a_Seed),
+ m_BiomeGen(a_BiomeGen)
+ {
+ }
+
+protected:
+
+ typedef cChunkDef::BiomeMap BiomeNeighbors[3][3];
+
+ cNoise m_Noise;
+ cBiomeGen & m_BiomeGen;
+
+ // Per-biome terrain generator parameters:
+ struct sGenParam
+ {
+ float m_HeightFreq1, m_HeightAmp1;
+ float m_HeightFreq2, m_HeightAmp2;
+ float m_HeightFreq3, m_HeightAmp3;
+ float m_BaseHeight;
+ } ;
+ static const sGenParam m_GenParam[biNumBiomes];
+
+ // cTerrainHeightGen override:
+ virtual void GenHeightMap(int a_ChunkX, int a_ChunkZ, cChunkDef::HeightMap & a_HeightMap) override;
+
+ HEIGHTTYPE GetHeightAt(int a_RelX, int a_RelZ, int a_ChunkX, int a_ChunkZ, const BiomeNeighbors & a_BiomeNeighbors);
+} ;
+
+
+
+