13 #include "../Noise/Noise.h" NOISE_DATATYPE m_NoiseArray[17 *17 *257]
bool IsChunkOutsideRange(cChunkCoords a_ChunkCoords)
Returns true if the chunk is outside of the island's dimensions.
Byte Shape[256 *16 *16]
The datatype used to represent the entire chunk worth of shape.
void PrepareState(cChunkCoords a_ChunkCoords)
Unless the LastChunk coords are equal to coords given, prepares the internal state (noise array) ...
virtual void InitializeCompoGen(cIniFile &a_IniFile) override
Reads parameters from the ini file, prepares generator for use.
cChunkCoords m_LastChunkCoords
void GenerateNoiseArray(void)
Generates the m_NoiseArray array for the current chunk.
The interface that a terrain composition generator must implement Terrain composition takes chunk coo...
float NOISE_DATATYPE
The datatype used by all the noise generators.
The interface that a terrain shape generator must implement A terrain shape generator takes chunk coo...
virtual void GenShape(cChunkCoords a_ChunkCoords, cChunkDesc::Shape &a_Shape) override
Generates the shape for the given chunk.
cPerlinNoise m_Perlin
The Perlin noise used for generating.
NOISE_DATATYPE m_FrequencyY
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_FrequencyX
NOISE_DATATYPE m_FrequencyZ
int m_Seed
Seed for the noise.