summaryrefslogtreecommitdiffstats
path: root/source/FinishGen.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-23 22:14:04 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-23 22:14:04 +0200
commit881ad8d8dbed920c00ea750fb809797456e0b4fc (patch)
treea24d6e094842a952e5ad5b8739fba52ceb36ba7d /source/FinishGen.h
parentSource files cleanup: Protocol-related files in a separate subfolder (diff)
downloadcuberite-881ad8d8dbed920c00ea750fb809797456e0b4fc.tar
cuberite-881ad8d8dbed920c00ea750fb809797456e0b4fc.tar.gz
cuberite-881ad8d8dbed920c00ea750fb809797456e0b4fc.tar.bz2
cuberite-881ad8d8dbed920c00ea750fb809797456e0b4fc.tar.lz
cuberite-881ad8d8dbed920c00ea750fb809797456e0b4fc.tar.xz
cuberite-881ad8d8dbed920c00ea750fb809797456e0b4fc.tar.zst
cuberite-881ad8d8dbed920c00ea750fb809797456e0b4fc.zip
Diffstat (limited to 'source/FinishGen.h')
-rw-r--r--source/FinishGen.h152
1 files changed, 0 insertions, 152 deletions
diff --git a/source/FinishGen.h b/source/FinishGen.h
deleted file mode 100644
index afa570fdf..000000000
--- a/source/FinishGen.h
+++ /dev/null
@@ -1,152 +0,0 @@
-
-// FinishGen.h
-
-/* Interfaces to the various finishing generators:
- - cFinishGenSnow
- - cFinishGenIce
- - cFinishGenSprinkleFoliage
- - cFinishGenLilypads
- - cFinishGenBottomLava
-*/
-
-
-
-
-
-#include "cChunkGenerator.h"
-#include "cNoise.h"
-
-
-
-
-
-class cFinishGenSnow :
- public cFinishGen
-{
-protected:
- // cFinishGen override:
- virtual void GenFinish(
- int a_ChunkX, int a_ChunkZ,
- cChunkDef::BlockTypes & a_BlockTypes, // Block types to read and change
- cChunkDef::BlockNibbles & a_BlockMeta, // Block meta to read and change
- cChunkDef::HeightMap & a_HeightMap, // Height map to read and change by the current data
- const cChunkDef::BiomeMap & a_BiomeMap, // Biomes to adhere to
- cEntityList & a_Entities, // Entities may be added or deleted
- cBlockEntityList & a_BlockEntities // Block entities may be added or deleted
- ) override;
-} ;
-
-
-
-
-
-class cFinishGenIce :
- public cFinishGen
-{
-protected:
- // cFinishGen override:
- virtual void GenFinish(
- int a_ChunkX, int a_ChunkZ,
- cChunkDef::BlockTypes & a_BlockTypes, // Block types to read and change
- cChunkDef::BlockNibbles & a_BlockMeta, // Block meta to read and change
- cChunkDef::HeightMap & a_HeightMap, // Height map to read and change by the current data
- const cChunkDef::BiomeMap & a_BiomeMap, // Biomes to adhere to
- cEntityList & a_Entities, // Entities may be added or deleted
- cBlockEntityList & a_BlockEntities // Block entities may be added or deleted
- ) override;
-} ;
-
-
-
-
-class cFinishGenSprinkleFoliage :
- public cFinishGen
-{
-public:
- cFinishGenSprinkleFoliage(int a_Seed) : m_Seed(a_Seed) {}
-
-protected:
- int m_Seed;
-
- /// Tries to place sugarcane at the coords specified, returns true if successful
- bool TryAddSugarcane(
- int a_ChunkX, int a_ChunkZ,
- int a_RelX, int a_RelY, int a_RelZ, // relative block coords of the sugarcane's base
- cChunkDef::BlockTypes & a_BlockTypes, // Block types to read and change
- cChunkDef::BlockNibbles & a_BlockMeta // Block meta to read and change
- );
-
- // cFinishGen override:
- virtual void GenFinish(
- int a_ChunkX, int a_ChunkZ,
- cChunkDef::BlockTypes & a_BlockTypes, // Block types to read and change
- cChunkDef::BlockNibbles & a_BlockMeta, // Block meta to read and change
- cChunkDef::HeightMap & a_HeightMap, // Height map to read and change by the current data
- const cChunkDef::BiomeMap & a_BiomeMap, // Biomes to adhere to
- cEntityList & a_Entities, // Entities may be added or deleted
- cBlockEntityList & a_BlockEntities // Block entities may be added or deleted
- ) override;
-} ;
-
-
-
-
-
-class cFinishGenLilypads :
- public cFinishGen
-{
-public:
- cFinishGenLilypads(int a_Seed) :
- m_Noise(a_Seed)
- {
- }
-
-protected:
- cNoise m_Noise;
-
- int GetNumLilypads(const cChunkDef::BiomeMap & a_BiomeMap);
-
- // cFinishGen override:
- virtual void GenFinish(
- int a_ChunkX, int a_ChunkZ,
- cChunkDef::BlockTypes & a_BlockTypes, // Block types to read and change
- cChunkDef::BlockNibbles & a_BlockMeta, // Block meta to read and change
- cChunkDef::HeightMap & a_HeightMap, // Height map to read and change by the current data
- const cChunkDef::BiomeMap & a_BiomeMap, // Biomes to adhere to
- cEntityList & a_Entities, // Entities may be added or deleted
- cBlockEntityList & a_BlockEntities // Block entities may be added or deleted
- ) override;
-} ;
-
-
-
-
-
-class cFinishGenBottomLava :
- public cFinishGen
-{
-public:
- cFinishGenBottomLava(int a_Level) :
- m_Level(a_Level)
- {
- }
-
-protected:
- int m_Level;
-
- // cFinishGen override:
- virtual void GenFinish(
- int a_ChunkX, int a_ChunkZ,
- cChunkDef::BlockTypes & a_BlockTypes, // Block types to read and change
- cChunkDef::BlockNibbles & a_BlockMeta, // Block meta to read and change
- cChunkDef::HeightMap & a_HeightMap, // Height map to read and change by the current data
- const cChunkDef::BiomeMap & a_BiomeMap, // Biomes to adhere to
- cEntityList & a_Entities, // Entities may be added or deleted
- cBlockEntityList & a_BlockEntities // Block entities may be added or deleted
- ) override;
-} ;
-
-
-
-
-