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

#include <FinishGen.h>

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

Public Member Functions

 cFinishGenFluidSprings (int a_Seed, BLOCKTYPE a_Fluid, cIniFile &a_IniFile, eDimension a_Dimension)
 
- Public Member Functions inherited from cFinishGen
virtual ~cFinishGen ()
 

Protected Member Functions

virtual void GenFinish (cChunkDesc &a_ChunkDesc) override
 
bool TryPlaceSpring (cChunkDesc &a_ChunkDesc, int x, int y, int z)
 Tries to place a spring at the specified coords, checks neighbors. More...
 

Protected Attributes

int m_Chance
 Chance, [0..100], that a spring will be generated in a chunk. More...
 
BLOCKTYPE m_Fluid
 
cProbabDistrib m_HeightDistribution
 
cNoise m_Noise
 

Detailed Description

Definition at line 403 of file FinishGen.h.

Constructor & Destructor Documentation

◆ cFinishGenFluidSprings()

cFinishGenFluidSprings::cFinishGenFluidSprings ( int  a_Seed,
BLOCKTYPE  a_Fluid,
cIniFile a_IniFile,
eDimension  a_Dimension 
)

Definition at line 1425 of file FinishGen.cpp.

Member Function Documentation

◆ GenFinish()

void cFinishGenFluidSprings::GenFinish ( cChunkDesc a_ChunkDesc)
overrideprotectedvirtual

Implements cFinishGen.

Definition at line 1476 of file FinishGen.cpp.

◆ TryPlaceSpring()

bool cFinishGenFluidSprings::TryPlaceSpring ( cChunkDesc a_ChunkDesc,
int  x,
int  y,
int  z 
)
protected

Tries to place a spring at the specified coords, checks neighbors.

Returns true if successful.

Definition at line 1519 of file FinishGen.cpp.

Member Data Documentation

◆ m_Chance

int cFinishGenFluidSprings::m_Chance
protected

Chance, [0..100], that a spring will be generated in a chunk.

Definition at line 414 of file FinishGen.h.

◆ m_Fluid

BLOCKTYPE cFinishGenFluidSprings::m_Fluid
protected

Definition at line 413 of file FinishGen.h.

◆ m_HeightDistribution

cProbabDistrib cFinishGenFluidSprings::m_HeightDistribution
protected

Definition at line 412 of file FinishGen.h.

◆ m_Noise

cNoise cFinishGenFluidSprings::m_Noise
protected

Definition at line 411 of file FinishGen.h.


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