Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Mixer that joins together finalized biomes and rivers. More...
#include <IntGen.h>
Public Types | |
using | Underlying = std::shared_ptr< cIntGen< SizeX, SizeZ > > |
Public Types inherited from cIntGen< SizeX, SizeX > | |
using | IntGenType = cIntGen< SizeX, SizeZ > |
using | Values = int[SizeX *SizeZ] |
Holds the array of values generated by this class (descendant). More... | |
Public Member Functions | |
cIntGenMixRivers (Underlying a_Biomes, Underlying a_Rivers) | |
virtual void | GetInts (int a_MinX, int a_MinZ, typename Super::Values &a_Values) override |
Generates the array of templated size into a_Values, based on given min coords. More... | |
Public Member Functions inherited from cIntGen< SizeX, SizeX > | |
virtual | ~cIntGen () |
Force a virtual destructor in all descendants. More... | |
Protected Attributes | |
Underlying | m_Biomes |
Underlying | m_Rivers |
Private Types | |
using | Super = cIntGen< SizeX, SizeZ > |
Mixer that joins together finalized biomes and rivers.
It first checks for oceans, if there is an ocean in the Biomes, it keeps the ocean. If there's no ocean, it checks Rivers for a river, if there is a river, it uses the Biomes to select either regular river or frozen river, based on the biome.
|
private |
using cIntGenMixRivers< SizeX, SizeZ >::Underlying = std::shared_ptr<cIntGen<SizeX, SizeZ> > |
|
inline |
|
inlineoverridevirtual |
Generates the array of templated size into a_Values, based on given min coords.
Implements cIntGen< SizeX, SizeX >.
|
protected |
|
protected |