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

Converts old-style height-generators into new-style shape-generators. More...

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

Public Member Functions

 cTerrainHeightToShapeGen (std::unique_ptr< cTerrainHeightGen > a_HeightGen)
 
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

std::unique_ptr< cTerrainHeightGenm_HeightGen
 The height generator being converted. More...
 

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

Converts old-style height-generators into new-style shape-generators.

Definition at line 22 of file ShapeGen.cpp.

Constructor & Destructor Documentation

◆ cTerrainHeightToShapeGen()

cTerrainHeightToShapeGen::cTerrainHeightToShapeGen ( std::unique_ptr< cTerrainHeightGen a_HeightGen)
inline

Definition at line 26 of file ShapeGen.cpp.

Member Function Documentation

◆ GenShape()

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

Generates the shape for the given chunk.

Implements cTerrainShapeGen.

Definition at line 33 of file ShapeGen.cpp.

◆ InitializeShapeGen()

virtual void cTerrainHeightToShapeGen::InitializeShapeGen ( cIniFile a_IniFile)
inlineoverridevirtual

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

Reimplemented from cTerrainShapeGen.

Definition at line 59 of file ShapeGen.cpp.

Member Data Documentation

◆ m_HeightGen

std::unique_ptr<cTerrainHeightGen> cTerrainHeightToShapeGen::m_HeightGen
protected

The height generator being converted.

Definition at line 66 of file ShapeGen.cpp.


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