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

#include <CompoGen.h>

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

Public Member Functions

 cCompoGenNether (int a_Seed)
 
- Public Member Functions inherited from cTerrainCompositionGen
virtual ~cTerrainCompositionGen ()
 

Protected Member Functions

virtual void ComposeTerrain (cChunkDesc &a_ChunkDesc, const cChunkDesc::Shape &a_Shape) override
 Generates the chunk's composition into a_ChunkDesc, using the terrain shape provided in a_Shape. More...
 
virtual void InitializeCompoGen (cIniFile &a_IniFile) override
 Reads parameters from the ini file, prepares generator for use. More...
 

Protected Attributes

double m_MaxThreshold
 
cNoise m_Noise1
 
cNoise m_Noise2
 

Additional Inherited Members

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

Detailed Description

Definition at line 92 of file CompoGen.h.

Constructor & Destructor Documentation

◆ cCompoGenNether()

cCompoGenNether::cCompoGenNether ( int  a_Seed)

Definition at line 217 of file CompoGen.cpp.

Member Function Documentation

◆ ComposeTerrain()

void cCompoGenNether::ComposeTerrain ( cChunkDesc a_ChunkDesc,
const cChunkDesc::Shape a_Shape 
)
overrideprotectedvirtual

Generates the chunk's composition into a_ChunkDesc, using the terrain shape provided in a_Shape.

Is expected to fill a_ChunkDesc's heightmap with the data from a_Shape.

Implements cTerrainCompositionGen.

Definition at line 228 of file CompoGen.cpp.

◆ InitializeCompoGen()

void cCompoGenNether::InitializeCompoGen ( cIniFile a_IniFile)
overrideprotectedvirtual

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

Reimplemented from cTerrainCompositionGen.

Definition at line 320 of file CompoGen.cpp.

Member Data Documentation

◆ m_MaxThreshold

double cCompoGenNether::m_MaxThreshold
protected

Definition at line 102 of file CompoGen.h.

◆ m_Noise1

cNoise cCompoGenNether::m_Noise1
protected

Definition at line 99 of file CompoGen.h.

◆ m_Noise2

cNoise cCompoGenNether::m_Noise2
protected

Definition at line 100 of file CompoGen.h.


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