17 #include "../Noise/Noise.h"
46 int a_ChunkX,
int a_ChunkZ,
int a_Seq,
55 int a_ChunkX,
int a_ChunkZ,
65 int a_ChunkX,
int a_ChunkZ,
std::vector< sSetBlock > sSetBlockVector
unsigned char BLOCKTYPE
The datatype used by blockdata.
EMCSBiome BiomeMap[Width *Width]
The type used for any biomemap operations and storage inside Cuberite, using Cuberite biomes (need no...
The interface that a biome generator must implement A biome generator takes chunk coords on input and...
The interface that a terrain shape generator must implement A terrain shape generator takes chunk coo...
The interface that a terrain composition generator must implement Terrain composition takes chunk coo...
The interface that a finisher must implement Finisher implements changes to the chunk after the rough...
cStructGenTrees(int a_Seed, cBiomeGen &a_BiomeGen, cTerrainShapeGen &a_ShapeGen, cTerrainCompositionGen &a_CompositionGen)
double GetNumTrees(int a_ChunkX, int a_ChunkZ, const cChunkDef::BiomeMap &a_Biomes)
Get the the number of trees to generate in a_Chunk If the value is between 0 and 1,...
virtual void GenFinish(cChunkDesc &a_ChunkDesc) override
void ApplyTreeImage(int a_ChunkX, int a_ChunkZ, cChunkDesc &a_ChunkDesc, const sSetBlockVector &a_Image, sSetBlockVector &a_Overflow)
Applies an image into chunk blockdata; all blocks outside the chunk will be appended to a_Overflow.
cTerrainCompositionGen & m_CompositionGen
cTerrainShapeGen & m_ShapeGen
void GenerateSingleTree(int a_ChunkX, int a_ChunkZ, int a_Seq, Vector3i a_Pos, cChunkDesc &a_ChunkDesc, sSetBlockVector &a_OutsideLogs, sSetBlockVector &a_OutsideOther)
Generates and applies an image of a single tree.
int m_Probability
Chance, [0 .
cTerrainShapeGen & m_ShapeGen
cStructGenLakes(int a_Seed, BLOCKTYPE a_Fluid, cTerrainShapeGen &a_ShapeGen, int a_Probability)
void CreateLakeImage(int a_ChunkX, int a_ChunkZ, int a_MaxLakeHeight, cBlockArea &a_Lake)
Creates a lake image for the specified chunk into a_Lake.
virtual void GenFinish(cChunkDesc &a_ChunkDesc) override
bool HasWantedBiome(cChunkDesc &a_ChunkDesc) const
virtual void GenFinish(cChunkDesc &a_ChunkDesc) override
cStructGenDirectOverhangs(int a_Seed)
cStructGenDistortedMembraneOverhangs(int a_Seed)
virtual void GenFinish(cChunkDesc &a_ChunkDesc) override