Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Public Member Functions | |
cCompoGenBiomal (int a_Seed) | |
Public Member Functions inherited from cTerrainCompositionGen | |
virtual | ~cTerrainCompositionGen () |
Protected Member Functions | |
const cPattern::BlockInfo * | ChooseOceanFloorPattern (int a_ChunkX, int a_ChunkZ, int a_RelX, int a_RelZ) |
Returns the pattern to use for an ocean floor in the specified column. More... | |
void | ComposeColumn (cChunkDesc &a_ChunkDesc, int a_RelX, int a_RelZ, const Byte *a_ShapeColumn) |
Composes a single column in a_ChunkDesc. More... | |
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 | FillColumnMesa (cChunkDesc &a_ChunkDesc, int a_RelX, int a_RelZ, const Byte *a_ShapeColumn) |
Fills the specified column with mesa pattern, based on the column height. More... | |
void | FillColumnPattern (cChunkDesc &a_ChunkDesc, int a_RelX, int a_RelZ, const cPattern::BlockInfo *a_Pattern, const Byte *a_ShapeColumn) |
Fills the specified column with the specified pattern; restarts the pattern when air is reached, switches to ocean floor pattern if ocean is reached. More... | |
virtual void | InitializeCompoGen (cIniFile &a_IniFile) override |
Reads parameters from the ini file, prepares generator for use. More... | |
void | initMesaPattern (int a_Seed) |
Initializes the m_MesaPattern with a pattern based on the generator's seed. More... | |
Protected Attributes | |
cNoise | m_MesaFloor |
Noise used for the floor of the clay blocks in mesa biomes. More... | |
cPattern::BlockInfo | m_MesaPattern [2 *cChunkDef::Height] |
The pattern used for mesa biomes. More... | |
cNoise | m_OceanFloorSelect |
Noise used for selecting between dirt and sand on the ocean floor. More... | |
HEIGHTTYPE | m_SeaLevel |
The block height at which water is generated instead of air. More... | |
Additional Inherited Members | |
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... | |
Definition at line 160 of file CompoGenBiomal.cpp.
|
inline |
Definition at line 164 of file CompoGenBiomal.cpp.
|
inlineprotected |
Returns the pattern to use for an ocean floor in the specified column.
The returned pattern is guaranteed to be 256 blocks long.
Definition at line 556 of file CompoGenBiomal.cpp.
|
inlineprotected |
Composes a single column in a_ChunkDesc.
Chooses what to do based on the biome in that column.
Definition at line 283 of file CompoGenBiomal.cpp.
|
inlineoverrideprotectedvirtual |
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 187 of file CompoGenBiomal.cpp.
|
inlineprotected |
Fills the specified column with mesa pattern, based on the column height.
Definition at line 465 of file CompoGenBiomal.cpp.
|
inlineprotected |
Fills the specified column with the specified pattern; restarts the pattern when air is reached, switches to ocean floor pattern if ocean is reached.
Always adds bedrock at the very bottom.
Definition at line 412 of file CompoGenBiomal.cpp.
|
inlineoverrideprotectedvirtual |
Reads parameters from the ini file, prepares generator for use.
Reimplemented from cTerrainCompositionGen.
Definition at line 201 of file CompoGenBiomal.cpp.
|
inlineprotected |
Initializes the m_MesaPattern with a pattern based on the generator's seed.
Definition at line 209 of file CompoGenBiomal.cpp.
|
protected |
Noise used for the floor of the clay blocks in mesa biomes.
Definition at line 183 of file CompoGenBiomal.cpp.
|
protected |
The pattern used for mesa biomes.
Initialized by seed on generator creation.
Definition at line 177 of file CompoGenBiomal.cpp.
|
protected |
Noise used for selecting between dirt and sand on the ocean floor.
Definition at line 180 of file CompoGenBiomal.cpp.
|
protected |
The block height at which water is generated instead of air.
Definition at line 174 of file CompoGenBiomal.cpp.