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

#include <BioGen.h>

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

Public Member Functions

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

Protected Member Functions

void Distort (int a_BlockX, int a_BlockZ, int &a_DistortedX, int &a_DistortedZ)
 Distorts the coords using a Perlin-like noise. More...
 
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...
 
- Protected Member Functions inherited from cBiomeGenList
void InitializeBiomes (const AString &a_Biomes)
 Parses the INI file setting string into m_Biomes. More...
 

Protected Attributes

int m_CellSize
 Size of the Voronoi cells, also used for distortion amplitude. More...
 
cNoise m_Noise
 Noise used for the distortion. More...
 
cVoronoiMap m_Voronoi
 The underlying Voronoi map of the biomes. More...
 
- 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 188 of file BioGen.h.

Member Typedef Documentation

◆ Super

Definition at line 191 of file BioGen.h.

Constructor & Destructor Documentation

◆ cBioGenDistortedVoronoi()

cBioGenDistortedVoronoi::cBioGenDistortedVoronoi ( int  a_Seed)
inline

Definition at line 195 of file BioGen.h.

Member Function Documentation

◆ Distort()

void cBioGenDistortedVoronoi::Distort ( int  a_BlockX,
int  a_BlockZ,
int &  a_DistortedX,
int &  a_DistortedZ 
)
protected

Distorts the coords using a Perlin-like noise.

Definition at line 377 of file BioGen.cpp.

◆ GenBiomes()

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

Generates biomes for the given chunk.

Implements cBiomeGen.

Definition at line 335 of file BioGen.cpp.

◆ InitializeBiomeGen()

void cBioGenDistortedVoronoi::InitializeBiomeGen ( cIniFile a_IniFile)
overrideprotectedvirtual

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

Reimplemented from cBiomeGen.

Definition at line 365 of file BioGen.cpp.

Member Data Documentation

◆ m_CellSize

int cBioGenDistortedVoronoi::m_CellSize
protected

Size of the Voronoi cells, also used for distortion amplitude.

Definition at line 210 of file BioGen.h.

◆ m_Noise

cNoise cBioGenDistortedVoronoi::m_Noise
protected

Noise used for the distortion.

Definition at line 204 of file BioGen.h.

◆ m_Voronoi

cVoronoiMap cBioGenDistortedVoronoi::m_Voronoi
protected

The underlying Voronoi map of the biomes.

Definition at line 207 of file BioGen.h.


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