QtCraft API C++ classes QML types Handbook

QcPathDirectCells Class

The cells straight from the world, without a cache (checking a few waypoints of a path). More...

Header: #include <server/pathing/QcPathTerrain.h>

Public Functions

quint8 cell(QcBlockPos pos) const
QcPathGap gap(QcBlockPos pos) const

Detailed Description

Member Function Documentation

quint8 QcPathDirectCells::cell(QcBlockPos pos) const

Returns the path cell (QcPathCell) of the block at pos.

QcPathGap QcPathDirectCells::gap(QcBlockPos pos) const

Returns the gap of an open door or trapdoor in the cell at pos (QcPathCell::hasPanel).