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

Provides additional cNoise member and its helper functions. More...

#include <ProtIntGen.h>

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

Public Member Functions

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

Protected Member Functions

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...
 

Protected Attributes

cNoise m_Noise
 

Private Types

typedef cProtIntGen super
 

Additional Inherited Members

- Public Types inherited from cProtIntGen
typedef std::shared_ptr< cProtIntGenUnderlying
 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

Provides additional cNoise member and its helper functions.

Definition at line 70 of file ProtIntGen.h.

Member Typedef Documentation

Definition at line 73 of file ProtIntGen.h.

Constructor & Destructor Documentation

cProtIntGenWithNoise::cProtIntGenWithNoise ( int  a_Seed)
inline

Definition at line 76 of file ProtIntGen.h.

Member Function Documentation

int cProtIntGenWithNoise::chooseRandomOne ( int  a_RndX,
int  a_RndZ,
int  a_Val1,
int  a_Val2 
)
inlineprotected

Chooses one of a_Val1 or a_Val2, based on m_Noise and the coordinates for querying the noise.

Definition at line 85 of file ProtIntGen.h.

int cProtIntGenWithNoise::chooseRandomOne ( int  a_RndX,
int  a_RndZ,
int  a_Val1,
int  a_Val2,
int  a_Val3,
int  a_Val4 
)
inlineprotected

Chooses one of a_ValN, based on m_Noise and the coordinates for querying the noise.

Definition at line 92 of file ProtIntGen.h.

Member Data Documentation

cNoise cProtIntGenWithNoise::m_Noise
protected

Definition at line 82 of file ProtIntGen.h.


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