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

#include <CompoGen.h>

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

Public Member Functions

 cCompoGenClassic (void)
 
- 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

int m_BeachDepth
 
int m_BeachHeight
 
BLOCKTYPE m_BlockBeach
 
BLOCKTYPE m_BlockBeachBottom
 
BLOCKTYPE m_BlockBottom
 
BLOCKTYPE m_BlockMiddle
 
BLOCKTYPE m_BlockSea
 
BLOCKTYPE m_BlockTop
 
int m_SeaLevel
 

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 65 of file CompoGen.h.

Constructor & Destructor Documentation

◆ cCompoGenClassic()

cCompoGenClassic::cCompoGenClassic ( void  )

Definition at line 118 of file CompoGen.cpp.

Member Function Documentation

◆ ComposeTerrain()

void cCompoGenClassic::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 135 of file CompoGen.cpp.

◆ InitializeCompoGen()

void cCompoGenClassic::InitializeCompoGen ( cIniFile a_IniFile)
overrideprotectedvirtual

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

Reimplemented from cTerrainCompositionGen.

Definition at line 197 of file CompoGen.cpp.

Member Data Documentation

◆ m_BeachDepth

int cCompoGenClassic::m_BeachDepth
protected

Definition at line 75 of file CompoGen.h.

◆ m_BeachHeight

int cCompoGenClassic::m_BeachHeight
protected

Definition at line 74 of file CompoGen.h.

◆ m_BlockBeach

BLOCKTYPE cCompoGenClassic::m_BlockBeach
protected

Definition at line 79 of file CompoGen.h.

◆ m_BlockBeachBottom

BLOCKTYPE cCompoGenClassic::m_BlockBeachBottom
protected

Definition at line 80 of file CompoGen.h.

◆ m_BlockBottom

BLOCKTYPE cCompoGenClassic::m_BlockBottom
protected

Definition at line 78 of file CompoGen.h.

◆ m_BlockMiddle

BLOCKTYPE cCompoGenClassic::m_BlockMiddle
protected

Definition at line 77 of file CompoGen.h.

◆ m_BlockSea

BLOCKTYPE cCompoGenClassic::m_BlockSea
protected

Definition at line 81 of file CompoGen.h.

◆ m_BlockTop

BLOCKTYPE cCompoGenClassic::m_BlockTop
protected

Definition at line 76 of file CompoGen.h.

◆ m_SeaLevel

int cCompoGenClassic::m_SeaLevel
protected

Definition at line 73 of file CompoGen.h.


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