Cuberite
A lightweight, fast and extensible game server for Minecraft
|
#include <EndGen.h>
Public Member Functions | |
cEndGen (int a_Seed) | |
Public Member Functions inherited from cTerrainShapeGen | |
virtual | ~cTerrainShapeGen () |
Public Member Functions inherited from cTerrainCompositionGen | |
virtual void | InitializeCompoGen (cIniFile &a_IniFile) |
Reads parameters from the ini file, prepares generator for use. More... | |
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 | InitializeShapeGen (cIniFile &a_IniFile) override |
Reads parameters from the ini file, prepares generator for use. More... | |
void | PrepareState (cChunkCoords a_ChunkCoords) |
Unless the LastChunk coords are equal to coords given, prepares the internal state (noise array) More... | |
Protected Attributes | |
int | m_IslandThickness |
int | m_IslandYOffset |
cChunkCoords | m_LastChunkCoords |
NOISE_DATATYPE | m_MainIslandFrequencyX |
NOISE_DATATYPE | m_MainIslandFrequencyY |
NOISE_DATATYPE | m_MainIslandFrequencyZ |
NOISE_DATATYPE | m_MainIslandMinThreshold |
int | m_MainIslandSize |
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... | |
NOISE_DATATYPE | m_SmallIslandFrequencyX |
NOISE_DATATYPE | m_SmallIslandFrequencyY |
NOISE_DATATYPE | m_SmallIslandFrequencyZ |
NOISE_DATATYPE | m_SmallIslandMinThreshold |
Additional Inherited Members | |
Static Public Member Functions inherited from cTerrainShapeGen | |
static std::unique_ptr< cTerrainShapeGen > | CreateShapeGen (cIniFile &a_IniFile, cBiomeGen &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 Public Member Functions inherited from cTerrainCompositionGen | |
static std::unique_ptr< cTerrainCompositionGen > | CreateCompositionGen (cIniFile &a_IniFile, cBiomeGen &a_BiomeGen, cTerrainShapeGen &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 180 of file EndGen.cpp.
|
protected |
Generates the m_NoiseArray array for the current chunk.
Definition at line 98 of file EndGen.cpp.
|
overrideprotectedvirtual |
Generates the shape for the given chunk.
Implements cTerrainShapeGen.
Definition at line 140 of file EndGen.cpp.
|
overrideprotectedvirtual |
Reads parameters from the ini file, prepares generator for use.
Reimplemented from cTerrainShapeGen.
Definition at line 60 of file EndGen.cpp.
|
protected |
Unless the LastChunk coords are equal to coords given, prepares the internal state (noise array)
Definition at line 82 of file EndGen.cpp.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |