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

#include <HeiGen.h>

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

Public Member Functions

 cHeiGenClassic (int a_Seed)
 
- 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...
 
float GetNoise (float x, float y)
 
virtual void InitializeHeightGen (cIniFile &a_IniFile) override
 Initializes the generator, reading its parameters from the INI file. More...
 

Protected Attributes

float m_HeightAmp1
 
float m_HeightAmp2
 
float m_HeightAmp3
 
float m_HeightFreq1
 
float m_HeightFreq2
 
float m_HeightFreq3
 
cNoise m_Noise
 
int m_Seed
 

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

Constructor & Destructor Documentation

◆ cHeiGenClassic()

cHeiGenClassic::cHeiGenClassic ( int  a_Seed)

Definition at line 288 of file HeiGen.cpp.

Member Function Documentation

◆ GenHeightMap()

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

Retrieves the heightmap for the specified chunk.

Implements cTerrainHeightGen.

Definition at line 322 of file HeiGen.cpp.

◆ GetNoise()

float cHeiGenClassic::GetNoise ( float  x,
float  y 
)
protected

Definition at line 304 of file HeiGen.cpp.

◆ InitializeHeightGen()

void cHeiGenClassic::InitializeHeightGen ( cIniFile a_IniFile)
overrideprotectedvirtual

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

Reimplemented from cTerrainHeightGen.

Definition at line 341 of file HeiGen.cpp.

Member Data Documentation

◆ m_HeightAmp1

float cHeiGenClassic::m_HeightAmp1
protected

Definition at line 132 of file HeiGen.h.

◆ m_HeightAmp2

float cHeiGenClassic::m_HeightAmp2
protected

Definition at line 133 of file HeiGen.h.

◆ m_HeightAmp3

float cHeiGenClassic::m_HeightAmp3
protected

Definition at line 134 of file HeiGen.h.

◆ m_HeightFreq1

float cHeiGenClassic::m_HeightFreq1
protected

Definition at line 132 of file HeiGen.h.

◆ m_HeightFreq2

float cHeiGenClassic::m_HeightFreq2
protected

Definition at line 133 of file HeiGen.h.

◆ m_HeightFreq3

float cHeiGenClassic::m_HeightFreq3
protected

Definition at line 134 of file HeiGen.h.

◆ m_Noise

cNoise cHeiGenClassic::m_Noise
protected

Definition at line 131 of file HeiGen.h.

◆ m_Seed

int cHeiGenClassic::m_Seed
protected

Definition at line 130 of file HeiGen.h.


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