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

#include <StructGen.h>

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

Public Member Functions

 cStructGenLakes (int a_Seed, BLOCKTYPE a_Fluid, cTerrainShapeGen &a_ShapeGen, int a_Probability)
 
- Public Member Functions inherited from cFinishGen
virtual ~cFinishGen ()
 

Protected Member Functions

void CreateLakeImage (int a_ChunkX, int a_ChunkZ, int a_MaxLakeHeight, cBlockArea &a_Lake)
 Creates a lake image for the specified chunk into a_Lake. More...
 
virtual void GenFinish (cChunkDesc &a_ChunkDesc) override
 

Protected Attributes

BLOCKTYPE m_Fluid
 
cNoise m_Noise
 
int m_Probability
 Chance, [0 . More...
 
int m_Seed
 
cTerrainShapeGenm_ShapeGen
 

Detailed Description

Definition at line 77 of file StructGen.h.

Constructor & Destructor Documentation

◆ cStructGenLakes()

cStructGenLakes::cStructGenLakes ( int  a_Seed,
BLOCKTYPE  a_Fluid,
cTerrainShapeGen a_ShapeGen,
int  a_Probability 
)
inline

Definition at line 81 of file StructGen.h.

Member Function Documentation

◆ CreateLakeImage()

void cStructGenLakes::CreateLakeImage ( int  a_ChunkX,
int  a_ChunkZ,
int  a_MaxLakeHeight,
cBlockArea a_Lake 
)
protected

Creates a lake image for the specified chunk into a_Lake.

Definition at line 341 of file StructGen.cpp.

◆ GenFinish()

void cStructGenLakes::GenFinish ( cChunkDesc a_ChunkDesc)
overrideprotectedvirtual

Implements cFinishGen.

Definition at line 314 of file StructGen.cpp.

Member Data Documentation

◆ m_Fluid

BLOCKTYPE cStructGenLakes::m_Fluid
protected

Definition at line 93 of file StructGen.h.

◆ m_Noise

cNoise cStructGenLakes::m_Noise
protected

Definition at line 91 of file StructGen.h.

◆ m_Probability

int cStructGenLakes::m_Probability
protected

Chance, [0 .

. 100], of a chunk having the lake.

Definition at line 97 of file StructGen.h.

◆ m_Seed

int cStructGenLakes::m_Seed
protected

Definition at line 92 of file StructGen.h.

◆ m_ShapeGen

cTerrainShapeGen& cStructGenLakes::m_ShapeGen
protected

Definition at line 94 of file StructGen.h.


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