Cuberite
A lightweight, fast and extensible game server for Minecraft
|
#include <HeiGen.h>
Classes | |
struct | sGenParam |
Public Member Functions | |
cHeiGenBiomal (int a_Seed, cBiomeGen &a_BiomeGen) | |
virtual void | GenHeightMap (cChunkCoords a_ChunkCoords, cChunkDef::HeightMap &a_HeightMap) override |
Retrieves the heightmap for the specified chunk. More... | |
virtual HEIGHTTYPE | GetHeightAt (int a_BlockX, int a_BlockZ) override |
Returns the height at the specified column. More... | |
virtual void | InitializeHeightGen (cIniFile &a_IniFile) override |
Initializes the generator, reading its parameters from the INI file. More... | |
Public Member Functions inherited from cTerrainHeightGen | |
virtual | ~cTerrainHeightGen () |
Protected Types | |
typedef cChunkDef::BiomeMap | BiomeNeighbors[3][3] |
Protected Member Functions | |
NOISE_DATATYPE | GetHeightAt (int a_RelX, int a_RelZ, int a_ChunkX, int a_ChunkZ, const BiomeNeighbors &a_BiomeNeighbors) |
Protected Attributes | |
cBiomeGen & | m_BiomeGen |
cNoise | m_Noise |
Static Protected Attributes | |
static const sGenParam | m_GenParam [256] |
Private Types | |
using | Super = cTerrainHeightGen |
Additional Inherited Members | |
Static Public Member Functions inherited from cTerrainHeightGen | |
static std::unique_ptr< cTerrainHeightGen > | CreateHeightGen (cIniFile &a_IniFile, cBiomeGen &a_BiomeGen, int a_Seed, bool &a_CacheOffByDefault) |
Creates a cTerrainHeightGen descendant based on the INI file settings. More... | |
|
protected |
|
private |
|
inline |
|
overridevirtual |
Retrieves the heightmap for the specified chunk.
Implements cTerrainHeightGen.
Definition at line 513 of file HeiGen.cpp.
|
inlineoverridevirtual |
Returns the height at the specified column.
The default implementation calls GenHeightMap(), and then queries the heightmap. Descendants may provide a better-performing method.
Reimplemented from cTerrainHeightGen.
|
protected |
Definition at line 562 of file HeiGen.cpp.
|
overridevirtual |
Initializes the generator, reading its parameters from the INI file.
Reimplemented from cTerrainHeightGen.
Definition at line 553 of file HeiGen.cpp.
|
staticprotected |