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

#include <FinishGen.h>

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

Public Member Functions

 cFinishGenSprinkleFoliage (int a_Seed, int a_MaxCactusHeight, int a_MaxSugarcaneHeight)
 
- Public Member Functions inherited from cFinishGen
virtual ~cFinishGen ()
 

Protected Member Functions

virtual void GenFinish (cChunkDesc &a_ChunkDesc) override
 
bool TryAddCactus (cChunkDesc &a_ChunkDesc, int a_RelX, HEIGHTTYPE &a_RelY, int a_RelZ)
 Tries to place cactus at the coords specified, returns true if successful, updates the top variable (hence the & a_RefY) More...
 
bool TryAddSugarcane (cChunkDesc &a_ChunkDesc, int a_RelX, HEIGHTTYPE &a_RelY, int a_RelZ)
 Tries to place sugarcane at the coords specified, returns true if successful, updates the top variable (hence the & a_RefY) More...
 

Static Protected Member Functions

static bool IsDesertVariant (EMCSBiome a_biome)
 

Protected Attributes

int m_MaxCactusHeight
 
int m_MaxSugarcaneHeight
 
cNoise m_Noise
 
int m_Seed
 

Detailed Description

Definition at line 236 of file FinishGen.h.

Constructor & Destructor Documentation

◆ cFinishGenSprinkleFoliage()

cFinishGenSprinkleFoliage::cFinishGenSprinkleFoliage ( int  a_Seed,
int  a_MaxCactusHeight,
int  a_MaxSugarcaneHeight 
)
inline

Definition at line 240 of file FinishGen.h.

Member Function Documentation

◆ GenFinish()

void cFinishGenSprinkleFoliage::GenFinish ( cChunkDesc a_ChunkDesc)
overrideprotectedvirtual

Implements cFinishGen.

Definition at line 945 of file FinishGen.cpp.

◆ IsDesertVariant()

bool cFinishGenSprinkleFoliage::IsDesertVariant ( EMCSBiome  a_biome)
staticprotected

Definition at line 1018 of file FinishGen.cpp.

◆ TryAddCactus()

bool cFinishGenSprinkleFoliage::TryAddCactus ( cChunkDesc a_ChunkDesc,
int  a_RelX,
HEIGHTTYPE a_RelY,
int  a_RelZ 
)
protected

Tries to place cactus at the coords specified, returns true if successful, updates the top variable (hence the & a_RefY)

Definition at line 836 of file FinishGen.cpp.

◆ TryAddSugarcane()

bool cFinishGenSprinkleFoliage::TryAddSugarcane ( cChunkDesc a_ChunkDesc,
int  a_RelX,
HEIGHTTYPE a_RelY,
int  a_RelZ 
)
protected

Tries to place sugarcane at the coords specified, returns true if successful, updates the top variable (hence the & a_RefY)

Definition at line 885 of file FinishGen.cpp.

Member Data Documentation

◆ m_MaxCactusHeight

int cFinishGenSprinkleFoliage::m_MaxCactusHeight
protected

Definition at line 250 of file FinishGen.h.

◆ m_MaxSugarcaneHeight

int cFinishGenSprinkleFoliage::m_MaxSugarcaneHeight
protected

Definition at line 251 of file FinishGen.h.

◆ m_Noise

cNoise cFinishGenSprinkleFoliage::m_Noise
protected

Definition at line 248 of file FinishGen.h.

◆ m_Seed

int cFinishGenSprinkleFoliage::m_Seed
protected

Definition at line 249 of file FinishGen.h.


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