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

#include <BioGen.h>

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

Public Member Functions

 cBioGenVoronoi (int a_Seed)
 
- Public Member Functions inherited from cBiomeGen
virtual ~cBiomeGen ()
 

Protected Member Functions

virtual void GenBiomes (cChunkCoords a_ChunkCoords, cChunkDef::BiomeMap &a_BiomeMap) override
 Generates biomes for the given chunk. More...
 
virtual void InitializeBiomeGen (cIniFile &a_IniFile) override
 Reads parameters from the ini file, prepares generator for use. More...
 
EMCSBiome VoronoiBiome (int a_BlockX, int a_BlockZ)
 
- Protected Member Functions inherited from cBiomeGenList
void InitializeBiomes (const AString &a_Biomes)
 Parses the INI file setting string into m_Biomes. More...
 

Protected Attributes

cVoronoiMap m_Voronoi
 
- Protected Attributes inherited from cBiomeGenList
EMCSBiomes m_Biomes
 
int m_BiomesCount
 

Private Types

using Super = cBiomeGenList
 

Additional Inherited Members

- Static Public Member Functions inherited from cBiomeGen
static std::unique_ptr< cBiomeGenCreateBiomeGen (cIniFile &a_IniFile, int a_Seed, bool &a_CacheOffByDefault)
 Creates the correct BiomeGen descendant based on the ini file settings. More...
 
- Protected Types inherited from cBiomeGenList
typedef std::vector< EMCSBiomeEMCSBiomes
 

Detailed Description

Definition at line 161 of file BioGen.h.

Member Typedef Documentation

◆ Super

Definition at line 164 of file BioGen.h.

Constructor & Destructor Documentation

◆ cBioGenVoronoi()

cBioGenVoronoi::cBioGenVoronoi ( int  a_Seed)
inline

Definition at line 168 of file BioGen.h.

Member Function Documentation

◆ GenBiomes()

void cBioGenVoronoi::GenBiomes ( cChunkCoords  a_ChunkCoords,
cChunkDef::BiomeMap a_BiomeMap 
)
overrideprotectedvirtual

Generates biomes for the given chunk.

Implements cBiomeGen.

Definition at line 297 of file BioGen.cpp.

◆ InitializeBiomeGen()

void cBioGenVoronoi::InitializeBiomeGen ( cIniFile a_IniFile)
overrideprotectedvirtual

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

Reimplemented from cBiomeGen.

Definition at line 316 of file BioGen.cpp.

◆ VoronoiBiome()

EMCSBiome cBioGenVoronoi::VoronoiBiome ( int  a_BlockX,
int  a_BlockZ 
)
protected

Member Data Documentation

◆ m_Voronoi

cVoronoiMap cBioGenVoronoi::m_Voronoi
protected

Definition at line 175 of file BioGen.h.


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