#include <reflowscan.h>
◆ ReflowScan()
◆ isLiquidFlowableTo()
bool ReflowScan::isLiquidFlowableTo |
( |
int | x, |
|
|
int | y, |
|
|
int | z ) |
|
inlineprivate |
References CONTENT_IGNORE, ContentFeatures::floodable, NodeDefManager::get(), MapNode::getContent(), MapBlock::getNodeNoCheck(), lookupBlock(), m_ndef, MAP_BLOCKSIZE, x, y, and z.
Referenced by isLiquidHorizontallyFlowable().
◆ isLiquidHorizontallyFlowable()
bool ReflowScan::isLiquidHorizontallyFlowable |
( |
int | x, |
|
|
int | y, |
|
|
int | z ) |
|
inlineprivate |
◆ lookupBlock()
MapBlock * ReflowScan::lookupBlock |
( |
int | x, |
|
|
int | y, |
|
|
int | z ) |
|
inlineprivate |
References Map::getBlockNoCreateNoEx(), idx, m_block_pos, m_lookup, m_lookup_state_bitset, m_map, MAP_BLOCKSIZE, x, y, and z.
Referenced by isLiquidFlowableTo(), and scanColumn().
◆ scan()
References MapBlock::getPos(), MapBlock::getPosRelative(), m_block_pos, m_liquid_queue, m_lookup, m_lookup_state_bitset, m_rel_block_pos, MAP_BLOCKSIZE, scanColumn(), x, and z.
Referenced by ServerMap::loadBlock().
◆ scanColumn()
void ReflowScan::scanColumn |
( |
int | x, |
|
|
int | z ) |
|
private |
References CONTENT_IGNORE, ContentFeatures::floodable, NodeDefManager::get(), MapNode::getContent(), MapBlock::getNodeNoCheck(), ContentFeatures::isLiquid(), isLiquidHorizontallyFlowable(), LIQUID_FLOWING, ContentFeatures::liquid_type, lookupBlock(), m_liquid_queue, m_ndef, m_rel_block_pos, MAP_BLOCKSIZE, UniqueQueue< Value >::push_back(), x, y, and z.
Referenced by scan().
◆ m_block_pos
v3s16 ReflowScan::m_block_pos |
|
private |
◆ m_liquid_queue
◆ m_lookup
◆ m_lookup_state_bitset
u32 ReflowScan::m_lookup_state_bitset |
|
private |
◆ m_map
Map* ReflowScan::m_map = nullptr |
|
private |
◆ m_ndef
◆ m_rel_block_pos
v3s16 ReflowScan::m_rel_block_pos |
|
private |
The documentation for this class was generated from the following files: