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

#include <BioGen.h>

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

Public Member Functions

 cBioGenTwoLevel (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 SelectBiome (int a_BiomeGroup, size_t a_BiomeIdx, int a_DistLevel)
 Selects biome from the specified biome group, based on the specified index. More...
 

Protected Attributes

float m_AmpX1
 
float m_AmpX2
 
float m_AmpX3
 
float m_AmpZ1
 
float m_AmpZ2
 
float m_AmpZ3
 
float m_FreqX1
 
float m_FreqX2
 
float m_FreqX3
 
float m_FreqZ1
 
float m_FreqZ2
 
float m_FreqZ3
 
cNoise m_Noise1
 
cNoise m_Noise2
 
cNoise m_Noise3
 
cNoise m_Noise4
 
cNoise m_Noise5
 
cNoise m_Noise6
 
cVoronoiMap m_VoronoiLarge
 The Voronoi map that decides the groups of biomes. More...
 
cVoronoiMap m_VoronoiSmall
 The Voronoi map that decides biomes inside individual biome groups. More...
 

Private Types

using Super = cBiomeGen
 

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...
 

Detailed Description

Definition at line 285 of file BioGen.h.

Member Typedef Documentation

◆ Super

Definition at line 288 of file BioGen.h.

Constructor & Destructor Documentation

◆ cBioGenTwoLevel()

cBioGenTwoLevel::cBioGenTwoLevel ( int  a_Seed)

Definition at line 718 of file BioGen.cpp.

Member Function Documentation

◆ GenBiomes()

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

Generates biomes for the given chunk.

Implements cBiomeGen.

Definition at line 746 of file BioGen.cpp.

◆ InitializeBiomeGen()

void cBioGenTwoLevel::InitializeBiomeGen ( cIniFile a_IniFile)
overrideprotectedvirtual

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

Reimplemented from cBiomeGen.

Definition at line 903 of file BioGen.cpp.

◆ SelectBiome()

EMCSBiome cBioGenTwoLevel::SelectBiome ( int  a_BiomeGroup,
size_t  a_BiomeIdx,
int  a_DistLevel 
)
protected

Selects biome from the specified biome group, based on the specified index.

Note that both params may overflow a_DistLevel is either 0 or 1; zero when it is at the edge of the small Voronoi cell, 1 near the center

Definition at line 790 of file BioGen.cpp.

Member Data Documentation

◆ m_AmpX1

float cBioGenTwoLevel::m_AmpX1
protected

Definition at line 310 of file BioGen.h.

◆ m_AmpX2

float cBioGenTwoLevel::m_AmpX2
protected

Definition at line 311 of file BioGen.h.

◆ m_AmpX3

float cBioGenTwoLevel::m_AmpX3
protected

Definition at line 312 of file BioGen.h.

◆ m_AmpZ1

float cBioGenTwoLevel::m_AmpZ1
protected

Definition at line 313 of file BioGen.h.

◆ m_AmpZ2

float cBioGenTwoLevel::m_AmpZ2
protected

Definition at line 314 of file BioGen.h.

◆ m_AmpZ3

float cBioGenTwoLevel::m_AmpZ3
protected

Definition at line 315 of file BioGen.h.

◆ m_FreqX1

float cBioGenTwoLevel::m_FreqX1
protected

Definition at line 310 of file BioGen.h.

◆ m_FreqX2

float cBioGenTwoLevel::m_FreqX2
protected

Definition at line 311 of file BioGen.h.

◆ m_FreqX3

float cBioGenTwoLevel::m_FreqX3
protected

Definition at line 312 of file BioGen.h.

◆ m_FreqZ1

float cBioGenTwoLevel::m_FreqZ1
protected

Definition at line 313 of file BioGen.h.

◆ m_FreqZ2

float cBioGenTwoLevel::m_FreqZ2
protected

Definition at line 314 of file BioGen.h.

◆ m_FreqZ3

float cBioGenTwoLevel::m_FreqZ3
protected

Definition at line 315 of file BioGen.h.

◆ m_Noise1

cNoise cBioGenTwoLevel::m_Noise1
protected

Definition at line 302 of file BioGen.h.

◆ m_Noise2

cNoise cBioGenTwoLevel::m_Noise2
protected

Definition at line 303 of file BioGen.h.

◆ m_Noise3

cNoise cBioGenTwoLevel::m_Noise3
protected

Definition at line 304 of file BioGen.h.

◆ m_Noise4

cNoise cBioGenTwoLevel::m_Noise4
protected

Definition at line 305 of file BioGen.h.

◆ m_Noise5

cNoise cBioGenTwoLevel::m_Noise5
protected

Definition at line 306 of file BioGen.h.

◆ m_Noise6

cNoise cBioGenTwoLevel::m_Noise6
protected

Definition at line 307 of file BioGen.h.

◆ m_VoronoiLarge

cVoronoiMap cBioGenTwoLevel::m_VoronoiLarge
protected

The Voronoi map that decides the groups of biomes.

Definition at line 296 of file BioGen.h.

◆ m_VoronoiSmall

cVoronoiMap cBioGenTwoLevel::m_VoronoiSmall
protected

The Voronoi map that decides biomes inside individual biome groups.

Definition at line 299 of file BioGen.h.


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