Cuberite
A lightweight, fast and extensible game server for Minecraft
Classes | Functions | Variables
IntGen.h File Reference
#include <tuple>
#include "../Noise/Noise.h"
#include "BiomeDef.h"
Include dependency graph for IntGen.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cIntGenBiomes< SizeX, SizeZ >::cBiomesInGroups
 
class  cIntGen< SizeX, SizeZ >
 Interface that all the generator classes provide. More...
 
class  cIntGenAddIslands< SizeX, SizeZ >
 Generates the underlying numbers and then randomly changes some ocean group pixels into random land biome group pixels, based on the predefined chance. More...
 
class  cIntGenAddToOcean< SizeX, SizeZ >
 Turns some of the oceans into the specified biome. More...
 
class  cIntGenAlternateBiomes< SizeX, SizeZ >
 Changes biomes in the parent data into an alternate versions (usually "hill" variants), in such places that have their alterations set. More...
 
class  cIntGenBeaches< SizeX, SizeZ >
 Converts land biomes at the edge of an ocean into the respective beach biome. More...
 
class  cIntGenBiomeEdges< SizeX, SizeZ >
 Adds an edge between two specifically incompatible biomes, such as mesa and forest. More...
 
class  cIntGenBiomeGroupEdges< SizeX, SizeZ >
 A filter that adds an edge biome group between two biome groups that need an edge between them. More...
 
class  cIntGenBiomes< SizeX, SizeZ >
 Turns biome group indices into real biomes. More...
 
class  cIntGenChoice< Range, SizeX, SizeZ >
 Generates a 2D array of random integers in the specified range [0 . More...
 
class  cIntGenFactory< Gen, Args >
 
class  cIntGenLandOcean< SizeX, SizeZ >
 Decides between the ocean and landmass biomes. More...
 
class  cIntGenMBiomes< SizeX, SizeZ >
 Changes biomes in the parent data into their alternate versions ("M" variants), in such places that have their alterations set. More...
 
class  cIntGenMixRivers< SizeX, SizeZ >
 Mixer that joins together finalized biomes and rivers. More...
 
class  cIntGenRareBiomeGroups< SizeX, SizeZ >
 Adds a "rare" flag to random biome groups, based on the given chance. More...
 
class  cIntGenReplaceRandomly< SizeX, SizeZ >
 Randomly replaces pixels of one value to another value, using the given chance. More...
 
class  cIntGenRiver< SizeX, SizeZ >
 Generates a river based on the underlying data. More...
 
class  cIntGenSetRandomly< SizeX, SizeZ >
 Changes random pixels of the underlying data to the specified value. More...
 
class  cIntGenSmooth< SizeX, SizeZ >
 Smoothes out some artifacts generated by the zooming - mostly single-pixel values. More...
 
class  cIntGenWithNoise< SizeX, SizeZ >
 Provides additional cNoise member and its helper functions. More...
 
class  cIntGenZoom< SizeX, SizeZ >
 Zooms the underlying value array to twice the size. More...
 
struct  sGens< N, S >
 
struct  sGens< 0, S... >
 
struct  sSeq<... >
 

Functions

template<class Gen , class... Args>
cIntGenFactory< Gen, Args... > MakeIntGen (Args &&... a_Args)
 
template<class T , class RhsGen , class... Args>
std::shared_ptr< RhsGen > operator| (std::shared_ptr< T > a_Lhs, cIntGenFactory< RhsGen, Args... > a_Rhs)
 

Variables

const int bgDesert = 1
 
const int bgfRare = 1024
 
const int bgIce = 4
 
const int bgLandOceanMax = 4
 
const int bgMountains = 3
 
const int bgOcean = 0
 Constants representing the biome group designators. More...
 
const int bgTemperate = 2
 

Function Documentation

◆ MakeIntGen()

template<class Gen , class... Args>
cIntGenFactory<Gen, Args...> MakeIntGen ( Args &&...  a_Args)

Definition at line 129 of file IntGen.h.

◆ operator|()

template<class T , class RhsGen , class... Args>
std::shared_ptr<RhsGen> operator| ( std::shared_ptr< T >  a_Lhs,
cIntGenFactory< RhsGen, Args... >  a_Rhs 
)

Definition at line 123 of file IntGen.h.

Variable Documentation

◆ bgDesert

const int bgDesert = 1

Definition at line 41 of file IntGen.h.

◆ bgfRare

const int bgfRare = 1024

Definition at line 46 of file IntGen.h.

◆ bgIce

const int bgIce = 4

Definition at line 44 of file IntGen.h.

◆ bgLandOceanMax

const int bgLandOceanMax = 4

Definition at line 45 of file IntGen.h.

◆ bgMountains

const int bgMountains = 3

Definition at line 43 of file IntGen.h.

◆ bgOcean

const int bgOcean = 0

Constants representing the biome group designators.

Definition at line 40 of file IntGen.h.

◆ bgTemperate

const int bgTemperate = 2

Definition at line 42 of file IntGen.h.