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

Converts land biomes at the edge of an ocean into the respective beach biome. More...

#include <IntGen.h>

Inheritance diagram for cIntGenBeaches< SizeX, SizeZ >:
Inheritance graph
[legend]
Collaboration diagram for cIntGenBeaches< 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

 cIntGenBeaches (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 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 cIntGenBeaches< SizeX, SizeZ >

Converts land biomes at the edge of an ocean into the respective beach biome.

Definition at line 411 of file IntGen.h.

Member Typedef Documentation

◆ Super

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

Definition at line 414 of file IntGen.h.

◆ Underlying

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

Definition at line 421 of file IntGen.h.

Constructor & Destructor Documentation

◆ cIntGenBeaches()

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

Definition at line 424 of file IntGen.h.

Member Function Documentation

◆ GetInts()

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

Member Data Documentation

◆ m_Underlying

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

Definition at line 505 of file IntGen.h.

◆ m_UnderlyingSizeX

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

Definition at line 416 of file IntGen.h.

◆ m_UnderlyingSizeZ

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

Definition at line 417 of file IntGen.h.


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