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

#include <FinishGen.h>

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

Public Member Functions

 cFinishGenPreSimulator (bool a_PreSimulateFallingBlocks, bool a_PreSimulateWater, bool a_PreSimulateLava)
 
- Public Member Functions inherited from cFinishGen
virtual ~cFinishGen ()
 

Protected Member Functions

void CollapseSandGravel (cChunkDesc &a_ChunkDesc)
 Drops hanging sand and gravel down to the ground, recalculates heightmap. More...
 
virtual void GenFinish (cChunkDesc &a_ChunkDesc) override
 
void StationarizeFluid (cChunkDef::BlockTypes &a_BlockTypes, cChunkDef::HeightMap &a_HeightMap, BLOCKTYPE a_Fluid, BLOCKTYPE a_StationaryFluid)
 For each fluid block: More...
 

Protected Attributes

bool m_PreSimulateFallingBlocks
 
bool m_PreSimulateLava
 
bool m_PreSimulateWater
 

Detailed Description

Definition at line 370 of file FinishGen.h.

Constructor & Destructor Documentation

◆ cFinishGenPreSimulator()

cFinishGenPreSimulator::cFinishGenPreSimulator ( bool  a_PreSimulateFallingBlocks,
bool  a_PreSimulateWater,
bool  a_PreSimulateLava 
)

Definition at line 1246 of file FinishGen.cpp.

Member Function Documentation

◆ CollapseSandGravel()

void cFinishGenPreSimulator::CollapseSandGravel ( cChunkDesc a_ChunkDesc)
protected

Drops hanging sand and gravel down to the ground, recalculates heightmap.

Definition at line 1281 of file FinishGen.cpp.

◆ GenFinish()

void cFinishGenPreSimulator::GenFinish ( cChunkDesc a_ChunkDesc)
overrideprotectedvirtual

Implements cFinishGen.

Definition at line 1258 of file FinishGen.cpp.

◆ StationarizeFluid()

void cFinishGenPreSimulator::StationarizeFluid ( cChunkDef::BlockTypes a_BlockTypes,
cChunkDef::HeightMap a_HeightMap,
BLOCKTYPE  a_Fluid,
BLOCKTYPE  a_StationaryFluid 
)
protected

For each fluid block:

  • if all surroundings are of the same fluid, makes it stationary; otherwise makes it flowing (excl. top)
  • all fluid on the chunk's edge is made flowing

Definition at line 1343 of file FinishGen.cpp.

Member Data Documentation

◆ m_PreSimulateFallingBlocks

bool cFinishGenPreSimulator::m_PreSimulateFallingBlocks
protected

Definition at line 378 of file FinishGen.h.

◆ m_PreSimulateLava

bool cFinishGenPreSimulator::m_PreSimulateLava
protected

Definition at line 380 of file FinishGen.h.

◆ m_PreSimulateWater

bool cFinishGenPreSimulator::m_PreSimulateWater
protected

Definition at line 379 of file FinishGen.h.


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