Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
BiomeGen Class Referenceabstract

#include <mg_biome.h>

+ Inheritance diagram for BiomeGen:
+ Collaboration diagram for BiomeGen:

Public Member Functions

virtual ~BiomeGen ()=default
 
virtual BiomeGenType getType () const =0
 
virtual BiomeGenclone (BiomeManager *biomemgr) const =0
 
void assertChunkSize (v3s16 expect) const
 
virtual BiomecalcBiomeAtPoint (v3s16 pos) const =0
 
virtual void calcBiomeNoise (v3s16 pmin)=0
 
virtual biome_tgetBiomes (s16 *heightmap, v3s16 pmin)=0
 
virtual BiomegetBiomeAtPoint (v3s16 pos) const =0
 
virtual BiomegetBiomeAtIndex (size_t index, v3s16 pos) const =0
 
virtual s16 getNextTransitionY (s16 y) const
 

Public Attributes

biome_tbiomemap = nullptr
 

Protected Attributes

BiomeManagerm_bmgr = nullptr
 
v3s16 m_pmin
 
v3s16 m_csize
 

Constructor & Destructor Documentation

◆ ~BiomeGen()

virtual BiomeGen::~BiomeGen ( )
virtualdefault

Member Function Documentation

◆ assertChunkSize()

void BiomeGen::assertChunkSize ( v3s16 expect) const
inline

References FATAL_ERROR_IF, and m_csize.

Referenced by MapgenBasic::MapgenBasic().

+ Here is the caller graph for this function:

◆ calcBiomeAtPoint()

virtual Biome * BiomeGen::calcBiomeAtPoint ( v3s16 pos) const
pure virtual

Implemented in BiomeGenOriginal.

Referenced by ModApiMapgen::l_get_biome_data().

+ Here is the caller graph for this function:

◆ calcBiomeNoise()

virtual void BiomeGen::calcBiomeNoise ( v3s16 pmin)
pure virtual

Implemented in BiomeGenOriginal.

Referenced by MapgenCarpathian::makeChunk(), MapgenFlat::makeChunk(), MapgenFractal::makeChunk(), MapgenV5::makeChunk(), and MapgenV7::makeChunk().

+ Here is the caller graph for this function:

◆ clone()

virtual BiomeGen * BiomeGen::clone ( BiomeManager * biomemgr) const
pure virtual

Implemented in BiomeGenOriginal.

Referenced by EmergeParams::EmergeParams().

+ Here is the caller graph for this function:

◆ getBiomeAtIndex()

virtual Biome * BiomeGen::getBiomeAtIndex ( size_t index,
v3s16 pos ) const
pure virtual

Implemented in BiomeGenOriginal.

Referenced by MapgenBasic::generateBiomes(), and CavesNoiseIntersection::generateCaves().

+ Here is the caller graph for this function:

◆ getBiomeAtPoint()

virtual Biome * BiomeGen::getBiomeAtPoint ( v3s16 pos) const
pure virtual

Implemented in BiomeGenOriginal.

Referenced by MapgenBasic::generateDungeons(), and CavesRandomWalk::makeCave().

+ Here is the caller graph for this function:

◆ getBiomes()

virtual biome_t * BiomeGen::getBiomes ( s16 * heightmap,
v3s16 pmin )
pure virtual

Implemented in BiomeGenOriginal.

◆ getNextTransitionY()

virtual s16 BiomeGen::getNextTransitionY ( s16 y) const
inlinevirtual

Reimplemented in BiomeGenOriginal.

References S16_MIN.

Referenced by MapgenBasic::generateBiomes(), and CavesNoiseIntersection::generateCaves().

+ Here is the caller graph for this function:

◆ getType()

virtual BiomeGenType BiomeGen::getType ( ) const
pure virtual

Implemented in BiomeGenOriginal.

Referenced by MapgenValleys::MapgenValleys(), ModApiMapgen::l_get_biome_data(), ModApiMapgen::l_get_heat(), ModApiMapgen::l_get_humidity(), and ModApiMapgen::l_get_mapgen_object().

+ Here is the caller graph for this function:

Member Data Documentation

◆ biomemap

◆ m_bmgr

BiomeManager* BiomeGen::m_bmgr = nullptr
protected

◆ m_csize

◆ m_pmin

v3s16 BiomeGen::m_pmin
protected

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