Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Protected Attributes | Private Types | List of all members
cProtIntGenMixRivers Class Reference

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

#include <ProtIntGen.h>

Inheritance diagram for cProtIntGenMixRivers:
Inheritance graph
[legend]
Collaboration diagram for cProtIntGenMixRivers:
Collaboration graph
[legend]

Public Member Functions

 cProtIntGenMixRivers (Underlying a_Biomes, Underlying a_Rivers)
 
virtual void GetInts (int a_MinX, int a_MinZ, size_t a_SizeX, size_t a_SizeZ, int *a_Values) override
 Generates the array of specified size into a_Values, based on given min coords. More...
 
- Public Member Functions inherited from cProtIntGen
virtual ~cProtIntGen ()
 Force a virtual destructor in all descendants. More...
 

Protected Attributes

Underlying m_Biomes
 
Underlying m_Rivers
 

Private Types

using Super = cProtIntGen
 

Additional Inherited Members

- Public Types inherited from cProtIntGen
using Underlying = std::shared_ptr< cProtIntGen >
 Type of the generic interface used for storing links to the underlying generators. More...
 
- Static Protected Attributes inherited from cProtIntGen
static const int m_BufferSize = PROT_INT_BUFFER_SIZE
 Maximum size of the generated area. More...
 

Detailed Description

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 1126 of file ProtIntGen.h.

Member Typedef Documentation

◆ Super

Definition at line 1129 of file ProtIntGen.h.

Constructor & Destructor Documentation

◆ cProtIntGenMixRivers()

cProtIntGenMixRivers::cProtIntGenMixRivers ( Underlying  a_Biomes,
Underlying  a_Rivers 
)
inline

Definition at line 1133 of file ProtIntGen.h.

Member Function Documentation

◆ GetInts()

virtual void cProtIntGenMixRivers::GetInts ( int  a_MinX,
int  a_MinZ,
size_t  a_SizeX,
size_t  a_SizeZ,
int *  a_Values 
)
inlineoverridevirtual

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

Implements cProtIntGen.

Definition at line 1140 of file ProtIntGen.h.

Member Data Documentation

◆ m_Biomes

Underlying cProtIntGenMixRivers::m_Biomes
protected

Definition at line 1180 of file ProtIntGen.h.

◆ m_Rivers

Underlying cProtIntGenMixRivers::m_Rivers
protected

Definition at line 1181 of file ProtIntGen.h.


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