Cuberite
A lightweight, fast and extensible game server for Minecraft
Classes | Functions | Variables
CompoGenBiomal.cpp File Reference
#include "Globals.h"
#include "CompoGenBiomal.h"
#include "../IniFile.h"
#include "../Noise/Noise.h"
#include "../LinearUpscale.h"
Include dependency graph for CompoGenBiomal.cpp:

Go to the source code of this file.

Classes

struct  cPattern::BlockInfo
 
class  cCompoGenBiomal
 
class  cPattern
 This class is used to store a column pattern initialized at runtime, so that the program doesn't need to explicitly set 256 values for each pattern Each pattern has 256 blocks so that there's no need to check pattern bounds when assigning the pattern - there will always be enough pattern left, even for the whole-chunk-height columns. More...
 

Functions

std::unique_ptr< cTerrainCompositionGenCreateCompoGenBiomal (int a_Seed)
 Returns a new instance of the Biomal composition generator. More...
 

Variables

static constexpr cPattern patDirt
 
static constexpr cPattern patGrass
 
static constexpr cPattern patGrassLess
 
static constexpr cPattern patGravel
 
static constexpr cPattern patMycelium
 
static constexpr cPattern patOFClay
 
static constexpr cPattern patOFOrangeClay
 
static constexpr cPattern patOFSand
 
static constexpr cPattern patPodzol
 
static constexpr cPattern patSand
 
static constexpr cPattern patStone
 

Function Documentation

◆ CreateCompoGenBiomal()

std::unique_ptr<cTerrainCompositionGen> CreateCompoGenBiomal ( int  a_Seed)

Returns a new instance of the Biomal composition generator.

Definition at line 585 of file CompoGenBiomal.cpp.

Variable Documentation

◆ patDirt

constexpr cPattern patDirt
staticconstexpr
Initial value:

Definition at line 77 of file CompoGenBiomal.cpp.

◆ patGrass

constexpr cPattern patGrass
staticconstexpr
Initial value:

Definition at line 61 of file CompoGenBiomal.cpp.

◆ patGrassLess

constexpr cPattern patGrassLess
staticconstexpr

◆ patGravel

constexpr cPattern patGravel
staticconstexpr
Initial value:
=
{
}
@ E_BLOCK_GRAVEL
Definition: BlockType.h:23
@ E_BLOCK_STONE
Definition: BlockType.h:11

Definition at line 109 of file CompoGenBiomal.cpp.

◆ patMycelium

constexpr cPattern patMycelium
staticconstexpr
Initial value:
=
{
}
@ E_BLOCK_MYCELIUM
Definition: BlockType.h:125

Definition at line 101 of file CompoGenBiomal.cpp.

◆ patOFClay

constexpr cPattern patOFClay
staticconstexpr
Initial value:
=
{
{ E_BLOCK_CLAY, 0},
{ E_BLOCK_CLAY, 0},
{ E_BLOCK_SAND, 0},
{ E_BLOCK_SAND, 0},
}
@ E_BLOCK_CLAY
Definition: BlockType.h:96
@ E_BLOCK_SAND
Definition: BlockType.h:22

Definition at line 138 of file CompoGenBiomal.cpp.

◆ patOFOrangeClay

constexpr cPattern patOFOrangeClay
staticconstexpr

◆ patOFSand

constexpr cPattern patOFSand
staticconstexpr
Initial value:
=
{
}
@ E_BLOCK_SANDSTONE
Definition: BlockType.h:34

Definition at line 130 of file CompoGenBiomal.cpp.

◆ patPodzol

constexpr cPattern patPodzol
staticconstexpr

◆ patSand

constexpr cPattern patSand
staticconstexpr
Initial value:
=
{
{ E_BLOCK_SAND, 0},
{ E_BLOCK_SAND, 0},
{ E_BLOCK_SAND, 0},
}

Definition at line 69 of file CompoGenBiomal.cpp.

◆ patStone

constexpr cPattern patStone
staticconstexpr
Initial value:

Definition at line 117 of file CompoGenBiomal.cpp.