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

#include <PieceStructuresGen.h>

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

Classes

class  cGen
 

Public Member Functions

 cPieceStructuresGen (int a_Seed)
 
virtual void GenFinish (cChunkDesc &a_ChunkDesc) override
 
bool Initialize (const AString &a_Prefabs, int a_SeaLevel, cBiomeGen &a_BiomeGen, cTerrainHeightGen &a_HeightGen)
 Initializes the generator based on the specified prefab sets. More...
 
- Public Member Functions inherited from cFinishGen
virtual ~cFinishGen ()
 

Protected Types

typedef std::shared_ptr< cGencGenPtr
 
typedef std::vector< cGenPtrcGenPtrs
 

Protected Attributes

cGenPtrs m_Gens
 The individual structure generators, one per piecepool. More...
 
int m_Seed
 The seed for the random number generator. More...
 

Private Types

using Super = cFinishGen
 

Detailed Description

Definition at line 24 of file PieceStructuresGen.h.

Member Typedef Documentation

◆ cGenPtr

typedef std::shared_ptr<cGen> cPieceStructuresGen::cGenPtr
protected

Definition at line 47 of file PieceStructuresGen.h.

◆ cGenPtrs

typedef std::vector<cGenPtr> cPieceStructuresGen::cGenPtrs
protected

Definition at line 48 of file PieceStructuresGen.h.

◆ Super

Definition at line 27 of file PieceStructuresGen.h.

Constructor & Destructor Documentation

◆ cPieceStructuresGen()

cPieceStructuresGen::cPieceStructuresGen ( int  a_Seed)

Definition at line 123 of file PieceStructuresGen.cpp.

Member Function Documentation

◆ GenFinish()

void cPieceStructuresGen::GenFinish ( cChunkDesc a_ChunkDesc)
overridevirtual

Implements cFinishGen.

Definition at line 168 of file PieceStructuresGen.cpp.

◆ Initialize()

bool cPieceStructuresGen::Initialize ( const AString a_Prefabs,
int  a_SeaLevel,
cBiomeGen a_BiomeGen,
cTerrainHeightGen a_HeightGen 
)

Initializes the generator based on the specified prefab sets.

a_Prefabs contains the list of prefab sets that should be activated, "|"-separated. All problems are logged to the console and the generator skips over them. Returns true if at least one prefab set is valid (the generator should be kept).

Definition at line 132 of file PieceStructuresGen.cpp.

Member Data Documentation

◆ m_Gens

cGenPtrs cPieceStructuresGen::m_Gens
protected

The individual structure generators, one per piecepool.

Definition at line 52 of file PieceStructuresGen.h.

◆ m_Seed

int cPieceStructuresGen::m_Seed
protected

The seed for the random number generator.

Definition at line 55 of file PieceStructuresGen.h.


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