Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Generates the underlying numbers and then randomly changes some ocean group pixels into random land biome group pixels, based on the predefined chance. More...
#include <ProtIntGen.h>
Public Types | |
using | Underlying = std::shared_ptr< cProtIntGen > |
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... | |
Public Member Functions | |
cProtIntGenAddIslands (int a_Seed, int a_Chance, Underlying a_Underlying) | |
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 cProtIntGenWithNoise | |
cProtIntGenWithNoise (int a_Seed) | |
Public Member Functions inherited from cProtIntGen | |
virtual | ~cProtIntGen () |
Force a virtual destructor in all descendants. More... | |
Protected Attributes | |
int | m_Chance |
Chance of each ocean pixel being converted, in permille. More... | |
Underlying | m_Underlying |
Protected Attributes inherited from cProtIntGenWithNoise | |
cNoise | m_Noise |
Private Types | |
using | Super = cProtIntGenWithNoise |
Additional Inherited Members | |
Protected Member Functions inherited from cProtIntGenWithNoise | |
int | chooseRandomOne (int a_RndX, int a_RndZ, int a_Val1, int a_Val2) |
Chooses one of a_Val1 or a_Val2, based on m_Noise and the coordinates for querying the noise. More... | |
int | chooseRandomOne (int a_RndX, int a_RndZ, int a_Val1, int a_Val2, int a_Val3, int a_Val4) |
Chooses one of a_ValN, based on m_Noise and the coordinates for querying the noise. More... | |
Static Protected Attributes inherited from cProtIntGen | |
static const int | m_BufferSize = PROT_INT_BUFFER_SIZE |
Maximum size of the generated area. More... | |
Generates the underlying numbers and then randomly changes some ocean group pixels into random land biome group pixels, based on the predefined chance.
Definition at line 788 of file ProtIntGen.h.
|
private |
Definition at line 791 of file ProtIntGen.h.
using cProtIntGenAddIslands::Underlying = std::shared_ptr<cProtIntGen> |
Definition at line 795 of file ProtIntGen.h.
|
inline |
Definition at line 798 of file ProtIntGen.h.
|
inlineoverridevirtual |
Generates the array of specified size into a_Values, based on given min coords.
Implements cProtIntGen.
Definition at line 806 of file ProtIntGen.h.
|
protected |
Chance of each ocean pixel being converted, in permille.
Definition at line 827 of file ProtIntGen.h.
|
protected |
Definition at line 829 of file ProtIntGen.h.