![]() |
Cuberite
A lightweight, fast and extensible game server for Minecraft
|
#include <EndGen.h>
Public Member Functions | |
cEndGen (int a_Seed) | |
![]() | |
virtual void | InitializeShapeGen (cIniFile &a_IniFile) |
Reads parameters from the ini file, prepares generator for use. More... | |
virtual | ~cTerrainShapeGen () |
![]() | |
virtual | ~cTerrainCompositionGen () |
Protected Member Functions | |
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. More... | |
void | GenerateNoiseArray (void) |
Generates the m_NoiseArray array for the current chunk. More... | |
virtual void | GenShape (cChunkCoords a_ChunkCoords, cChunkDesc::Shape &a_Shape) override |
Generates the shape for the given chunk. More... | |
virtual void | InitializeCompoGen (cIniFile &a_IniFile) override |
Reads parameters from the ini file, prepares generator for use. More... | |
bool | IsChunkOutsideRange (cChunkCoords a_ChunkCoords) |
Returns true if the chunk is outside of the island's dimensions. More... | |
void | PrepareState (cChunkCoords a_ChunkCoords) |
Unless the LastChunk coords are equal to coords given, prepares the internal state (noise array) More... | |
Protected Attributes | |
NOISE_DATATYPE | m_FrequencyX |
NOISE_DATATYPE | m_FrequencyY |
NOISE_DATATYPE | m_FrequencyZ |
int | m_IslandSizeX |
int | m_IslandSizeY |
int | m_IslandSizeZ |
cChunkCoords | m_LastChunkCoords |
int | m_MaxChunkX |
int | m_MaxChunkZ |
int | m_MinChunkX |
int | m_MinChunkZ |
NOISE_DATATYPE | m_NoiseArray [17 *17 *257] |
cPerlinNoise | m_Perlin |
The Perlin noise used for generating. More... | |
int | m_Seed |
Seed for the noise. More... | |
Additional Inherited Members | |
![]() | |
static cTerrainShapeGenPtr | CreateShapeGen (cIniFile &a_IniFile, cBiomeGenPtr a_BiomeGen, int a_Seed, bool &a_CacheOffByDefault) |
Creates the correct TerrainShapeGen descendant based on the ini file settings and the seed provided. More... | |
![]() | |
static cTerrainCompositionGenPtr | CreateCompositionGen (cIniFile &a_IniFile, cBiomeGenPtr a_BiomeGen, cTerrainShapeGenPtr a_ShapeGen, int a_Seed) |
Creates the correct TerrainCompositionGen descendant based on the ini file settings and the seed provided. More... | |
cEndGen::cEndGen | ( | int | a_Seed | ) |
Definition at line 35 of file EndGen.cpp.
|
overrideprotectedvirtual |
Generates the chunk's composition into a_ChunkDesc, using the terrain shape provided in a_Shape.
Is expected to fill a_ChunkDesc's heightmap with the data from a_Shape.
Implements cTerrainCompositionGen.
Definition at line 186 of file EndGen.cpp.
|
protected |
Generates the m_NoiseArray array for the current chunk.
Definition at line 97 of file EndGen.cpp.
|
overrideprotectedvirtual |
Generates the shape for the given chunk.
Implements cTerrainShapeGen.
Definition at line 151 of file EndGen.cpp.
|
overrideprotectedvirtual |
Reads parameters from the ini file, prepares generator for use.
Reimplemented from cTerrainCompositionGen.
Definition at line 58 of file EndGen.cpp.
|
protected |
Returns true if the chunk is outside of the island's dimensions.
Definition at line 139 of file EndGen.cpp.
|
protected |
Unless the LastChunk coords are equal to coords given, prepares the internal state (noise array)
Definition at line 79 of file EndGen.cpp.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |