Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cHeiGenFlat Class Reference

#include <HeiGen.h>

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

Public Member Functions

 cHeiGenFlat (void)
 
- Public Member Functions inherited from cTerrainHeightGen
virtual HEIGHTTYPE GetHeightAt (int a_BlockX, int a_BlockZ)
 Returns the height at the specified column. More...
 
virtual ~cTerrainHeightGen ()
 

Protected Member Functions

virtual void GenHeightMap (cChunkCoords a_ChunkCoords, cChunkDef::HeightMap &a_HeightMap) override
 Retrieves the heightmap for the specified chunk. More...
 
virtual void InitializeHeightGen (cIniFile &a_IniFile) override
 Initializes the generator, reading its parameters from the INI file. More...
 

Protected Attributes

HEIGHTTYPE m_Height
 

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 103 of file HeiGen.h.

Constructor & Destructor Documentation

◆ cHeiGenFlat()

cHeiGenFlat::cHeiGenFlat ( void  )
inline

Definition at line 107 of file HeiGen.h.

Member Function Documentation

◆ GenHeightMap()

void cHeiGenFlat::GenHeightMap ( cChunkCoords  a_ChunkCoords,
cChunkDef::HeightMap a_HeightMap 
)
overrideprotectedvirtual

Retrieves the heightmap for the specified chunk.

Implements cTerrainHeightGen.

Definition at line 84 of file HeiGen.cpp.

◆ InitializeHeightGen()

void cHeiGenFlat::InitializeHeightGen ( cIniFile a_IniFile)
overrideprotectedvirtual

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

Reimplemented from cTerrainHeightGen.

Definition at line 97 of file HeiGen.cpp.

Member Data Documentation

◆ m_Height

HEIGHTTYPE cHeiGenFlat::m_Height
protected

Definition at line 111 of file HeiGen.h.


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