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

A filter that adds an edge biome group between two biome groups that need an edge between them. More...

#include <IntGen.h>

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

Public Types

using Underlying = std::shared_ptr< cIntGen< m_UnderlyingSizeX, m_UnderlyingSizeZ > >
 
- 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

 cIntGenBiomeGroupEdges (Underlying a_Underlying)
 
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 Member Functions

bool isDesertCompatible (int a_BiomeGroup)
 

Protected Attributes

Underlying m_Underlying
 

Private Types

using Super = cIntGen< SizeX, SizeZ >
 

Static Private Attributes

static const int m_UnderlyingSizeX = SizeX + 2
 
static const int m_UnderlyingSizeZ = SizeZ + 2
 

Detailed Description

template<int SizeX, int SizeZ = SizeX>
class cIntGenBiomeGroupEdges< SizeX, SizeZ >

A filter that adds an edge biome group between two biome groups that need an edge between them.

Definition at line 565 of file IntGen.h.

Member Typedef Documentation

◆ Super

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

Definition at line 568 of file IntGen.h.

◆ Underlying

template<int SizeX, int SizeZ = SizeX>
using cIntGenBiomeGroupEdges< SizeX, SizeZ >::Underlying = std::shared_ptr<cIntGen<m_UnderlyingSizeX, m_UnderlyingSizeZ> >

Definition at line 575 of file IntGen.h.

Constructor & Destructor Documentation

◆ cIntGenBiomeGroupEdges()

template<int SizeX, int SizeZ = SizeX>
cIntGenBiomeGroupEdges< SizeX, SizeZ >::cIntGenBiomeGroupEdges ( Underlying  a_Underlying)
inline

Definition at line 578 of file IntGen.h.

Member Function Documentation

◆ GetInts()

template<int SizeX, int SizeZ = SizeX>
virtual void cIntGenBiomeGroupEdges< 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 584 of file IntGen.h.

◆ isDesertCompatible()

template<int SizeX, int SizeZ = SizeX>
bool cIntGenBiomeGroupEdges< SizeX, SizeZ >::isDesertCompatible ( int  a_BiomeGroup)
inlineprotected

Definition at line 641 of file IntGen.h.

Member Data Documentation

◆ m_Underlying

template<int SizeX, int SizeZ = SizeX>
Underlying cIntGenBiomeGroupEdges< SizeX, SizeZ >::m_Underlying
protected

Definition at line 638 of file IntGen.h.

◆ m_UnderlyingSizeX

template<int SizeX, int SizeZ = SizeX>
const int cIntGenBiomeGroupEdges< SizeX, SizeZ >::m_UnderlyingSizeX = SizeX + 2
staticprivate

Definition at line 570 of file IntGen.h.

◆ m_UnderlyingSizeZ

template<int SizeX, int SizeZ = SizeX>
const int cIntGenBiomeGroupEdges< SizeX, SizeZ >::m_UnderlyingSizeZ = SizeZ + 2
staticprivate

Definition at line 571 of file IntGen.h.


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