![]() |
Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Zooms the underlying value array to twice the size. More...
#include <ProtIntGen.h>
Public Member Functions | |
cProtIntGenZoom (int a_Seed, Underlying a_UnderlyingGen) | |
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... | |
![]() | |
cProtIntGenWithNoise (int a_Seed) | |
![]() | |
virtual | ~cProtIntGen () |
Force a virtual destructor in all descendants. More... | |
Protected Attributes | |
Underlying | m_UnderlyingGen |
![]() | |
cNoise | m_Noise |
Private Types | |
using | Super = cProtIntGenWithNoise |
Additional Inherited Members | |
![]() | |
using | Underlying = std::shared_ptr< cProtIntGen > |
Type of the generic interface used for storing links to the underlying generators. More... | |
![]() | |
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 const int | m_BufferSize = PROT_INT_BUFFER_SIZE |
Maximum size of the generated area. More... | |
Zooms the underlying value array to twice the size.
Uses random-neighbor for the pixels in-between. This means that the zoome out image is randomly distorted. Applying zoom several times provides all the distortion that the generators need.
Definition at line 192 of file ProtIntGen.h.
|
private |
Definition at line 195 of file ProtIntGen.h.
|
inline |
Definition at line 199 of file ProtIntGen.h.
|
inlineoverridevirtual |
Generates the array of specified size into a_Values, based on given min coords.
Implements cProtIntGen.
Definition at line 206 of file ProtIntGen.h.
|
protected |
Definition at line 254 of file ProtIntGen.h.