Cuberite
A lightweight, fast and extensible game server for Minecraft
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Types | List of all members
cHeiGenBiomal Class Reference

#include <HeiGen.h>

Inheritance diagram for cHeiGenBiomal:
Inheritance graph
[legend]
Collaboration diagram for cHeiGenBiomal:
Collaboration graph
[legend]

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

cBiomeGenm_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< cTerrainHeightGenCreateHeightGen (cIniFile &a_IniFile, cBiomeGen &a_BiomeGen, int a_Seed, bool &a_CacheOffByDefault)
 Creates a cTerrainHeightGen descendant based on the INI file settings. More...
 

Detailed Description

Definition at line 169 of file HeiGen.h.

Member Typedef Documentation

◆ BiomeNeighbors

typedef cChunkDef::BiomeMap cHeiGenBiomal::BiomeNeighbors[3][3]
protected

Definition at line 192 of file HeiGen.h.

◆ Super

Definition at line 172 of file HeiGen.h.

Constructor & Destructor Documentation

◆ cHeiGenBiomal()

cHeiGenBiomal::cHeiGenBiomal ( int  a_Seed,
cBiomeGen a_BiomeGen 
)
inline

Definition at line 176 of file HeiGen.h.

Member Function Documentation

◆ GenHeightMap()

void cHeiGenBiomal::GenHeightMap ( cChunkCoords  a_ChunkCoords,
cChunkDef::HeightMap a_HeightMap 
)
overridevirtual

Retrieves the heightmap for the specified chunk.

Implements cTerrainHeightGen.

Definition at line 513 of file HeiGen.cpp.

◆ GetHeightAt() [1/2]

virtual HEIGHTTYPE cHeiGenBiomal::GetHeightAt ( int  a_BlockX,
int  a_BlockZ 
)
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.

Definition at line 184 of file HeiGen.h.

◆ GetHeightAt() [2/2]

NOISE_DATATYPE cHeiGenBiomal::GetHeightAt ( int  a_RelX,
int  a_RelZ,
int  a_ChunkX,
int  a_ChunkZ,
const BiomeNeighbors a_BiomeNeighbors 
)
protected

Definition at line 562 of file HeiGen.cpp.

◆ InitializeHeightGen()

void cHeiGenBiomal::InitializeHeightGen ( cIniFile a_IniFile)
overridevirtual

Initializes the generator, reading its parameters from the INI file.

Reimplemented from cTerrainHeightGen.

Definition at line 553 of file HeiGen.cpp.

Member Data Documentation

◆ m_BiomeGen

cBiomeGen& cHeiGenBiomal::m_BiomeGen
protected

Definition at line 195 of file HeiGen.h.

◆ m_GenParam

const cHeiGenBiomal::sGenParam cHeiGenBiomal::m_GenParam
staticprotected

Definition at line 205 of file HeiGen.h.

◆ m_Noise

cNoise cHeiGenBiomal::m_Noise
protected

Definition at line 194 of file HeiGen.h.


The documentation for this class was generated from the following files: