13 #include "../Noise/Noise.h"
float NOISE_DATATYPE
The datatype used by all the noise generators.
Wraps the chunk coords into a single structure.
Byte Shape[256 *16 *16]
The datatype used to represent the entire chunk worth of shape.
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...
virtual void InitializeShapeGen(cIniFile &a_IniFile) override
Reads parameters from the ini file, prepares generator for use.
NOISE_DATATYPE m_SmallIslandFrequencyX
virtual void ComposeTerrain(cChunkDesc &a_ChunkDesc, const cChunkDesc::Shape &a_Shape) override
Generates the chunk's composition into a_ChunkDesc, using the terrain shape provided in a_Shape.
NOISE_DATATYPE m_MainIslandFrequencyX
virtual void GenShape(cChunkCoords a_ChunkCoords, cChunkDesc::Shape &a_Shape) override
Generates the shape for the given chunk.
NOISE_DATATYPE m_NoiseArray[17 *17 *257]
void GenerateNoiseArray(void)
Generates the m_NoiseArray array for the current chunk.
NOISE_DATATYPE m_SmallIslandMinThreshold
cPerlinNoise m_Perlin
The Perlin noise used for generating.
cChunkCoords m_LastChunkCoords
NOISE_DATATYPE m_SmallIslandFrequencyY
NOISE_DATATYPE m_MainIslandFrequencyY
NOISE_DATATYPE m_MainIslandFrequencyZ
void PrepareState(cChunkCoords a_ChunkCoords)
Unless the LastChunk coords are equal to coords given, prepares the internal state (noise array)
int m_Seed
Seed for the noise.
NOISE_DATATYPE m_MainIslandMinThreshold
NOISE_DATATYPE m_SmallIslandFrequencyZ