Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Protected Attributes | Private Types | List of all members
cTwoHeights Class Reference
Inheritance diagram for cTwoHeights:
Inheritance graph
[legend]
Collaboration diagram for cTwoHeights:
Collaboration graph
[legend]

Public Member Functions

 cTwoHeights (int a_Seed, cBiomeGen &a_BiomeGen)
 
virtual void GenShape (cChunkCoords a_ChunkCoords, cChunkDesc::Shape &a_Shape) override
 Generates the shape for the given chunk. More...
 
virtual void InitializeShapeGen (cIniFile &a_IniFile) override
 Reads parameters from the ini file, prepares generator for use. More...
 
- Public Member Functions inherited from cTerrainShapeGen
virtual ~cTerrainShapeGen ()
 

Protected Attributes

cOctavedNoise< cInterpolNoise< Interp5Deg > > m_Choice
 The noise used to decide between the two heightmaps. More...
 
NOISE_DATATYPE m_FrequencyX
 The base frequencies for m_Choice in each of the world axis directions. More...
 
NOISE_DATATYPE m_FrequencyY
 
NOISE_DATATYPE m_FrequencyZ
 
cHeiGenBiomal m_HeightA
 The first height generator. More...
 
cHeiGenBiomal m_HeightB
 The second height generator. More...
 
int m_Seed
 

Private Types

using Super = cTerrainShapeGen
 

Additional Inherited Members

- Static Public Member Functions inherited from cTerrainShapeGen
static std::unique_ptr< cTerrainShapeGenCreateShapeGen (cIniFile &a_IniFile, cBiomeGen &a_BiomeGen, int a_Seed, bool &a_CacheOffByDefault)
 Creates the correct TerrainShapeGen descendant based on the ini file settings and the seed provided. More...
 

Detailed Description

Definition at line 17 of file TwoHeights.cpp.

Member Typedef Documentation

◆ Super

Definition at line 20 of file TwoHeights.cpp.

Constructor & Destructor Documentation

◆ cTwoHeights()

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

Definition at line 24 of file TwoHeights.cpp.

Member Function Documentation

◆ GenShape()

virtual void cTwoHeights::GenShape ( cChunkCoords  a_ChunkCoords,
cChunkDesc::Shape a_Shape 
)
inlineoverridevirtual

Generates the shape for the given chunk.

Implements cTerrainShapeGen.

Definition at line 34 of file TwoHeights.cpp.

◆ InitializeShapeGen()

virtual void cTwoHeights::InitializeShapeGen ( cIniFile a_IniFile)
inlineoverridevirtual

Reads parameters from the ini file, prepares generator for use.

Reimplemented from cTerrainShapeGen.

Definition at line 74 of file TwoHeights.cpp.

Member Data Documentation

◆ m_Choice

cOctavedNoise<cInterpolNoise<Interp5Deg> > cTwoHeights::m_Choice
protected

The noise used to decide between the two heightmaps.

Definition at line 100 of file TwoHeights.cpp.

◆ m_FrequencyX

NOISE_DATATYPE cTwoHeights::m_FrequencyX
protected

The base frequencies for m_Choice in each of the world axis directions.

Definition at line 109 of file TwoHeights.cpp.

◆ m_FrequencyY

NOISE_DATATYPE cTwoHeights::m_FrequencyY
protected

Definition at line 109 of file TwoHeights.cpp.

◆ m_FrequencyZ

NOISE_DATATYPE cTwoHeights::m_FrequencyZ
protected

Definition at line 109 of file TwoHeights.cpp.

◆ m_HeightA

cHeiGenBiomal cTwoHeights::m_HeightA
protected

The first height generator.

Definition at line 103 of file TwoHeights.cpp.

◆ m_HeightB

cHeiGenBiomal cTwoHeights::m_HeightB
protected

The second height generator.

Definition at line 106 of file TwoHeights.cpp.

◆ m_Seed

int cTwoHeights::m_Seed
protected

Definition at line 97 of file TwoHeights.cpp.


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