Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Types | Public Member Functions | Protected Attributes | Private Types | List of all members
cIntGenMixRivers< SizeX, SizeZ > Class Template Reference

Mixer that joins together finalized biomes and rivers. More...

#include <IntGen.h>

Inheritance diagram for cIntGenMixRivers< SizeX, SizeZ >:
Inheritance graph
[legend]
Collaboration diagram for cIntGenMixRivers< SizeX, SizeZ >:
Collaboration graph
[legend]

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 >
 

Detailed Description

template<int SizeX, int SizeZ = SizeX>
class cIntGenMixRivers< 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.

Definition at line 862 of file IntGen.h.

Member Typedef Documentation

◆ Super

template<int SizeX, int SizeZ = SizeX>
using cIntGenMixRivers< SizeX, SizeZ >::Super = cIntGen<SizeX, SizeZ>
private

Definition at line 865 of file IntGen.h.

◆ Underlying

template<int SizeX, int SizeZ = SizeX>
using cIntGenMixRivers< SizeX, SizeZ >::Underlying = std::shared_ptr<cIntGen<SizeX, SizeZ> >

Definition at line 869 of file IntGen.h.

Constructor & Destructor Documentation

◆ cIntGenMixRivers()

template<int SizeX, int SizeZ = SizeX>
cIntGenMixRivers< SizeX, SizeZ >::cIntGenMixRivers ( Underlying  a_Biomes,
Underlying  a_Rivers 
)
inline

Definition at line 872 of file IntGen.h.

Member Function Documentation

◆ GetInts()

template<int SizeX, int SizeZ = SizeX>
virtual void cIntGenMixRivers< SizeX, SizeZ >::GetInts ( int  a_MinX,
int  a_MinZ,
typename Super::Values a_Values 
)
inlineoverridevirtual

Generates the array of templated size into a_Values, based on given min coords.

Implements cIntGen< SizeX, SizeX >.

Definition at line 879 of file IntGen.h.

Member Data Documentation

◆ m_Biomes

template<int SizeX, int SizeZ = SizeX>
Underlying cIntGenMixRivers< SizeX, SizeZ >::m_Biomes
protected

Definition at line 918 of file IntGen.h.

◆ m_Rivers

template<int SizeX, int SizeZ = SizeX>
Underlying cIntGenMixRivers< SizeX, SizeZ >::m_Rivers
protected

Definition at line 919 of file IntGen.h.


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