QtCraft API C++ classes QML types Handbook

QcPathStand Struct

One place a creature can stand in: its feet cell, how high it stands on a low block in that cell (a slab: half a block, a carpet an eighth) and whether it is in water. More...

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

Public Functions

double lift() const

Public Variables

double height
bool hurts
bool ok
bool panel
bool slippery
bool slows
bool water

Detailed Description

Member Function Documentation

double QcPathStand::lift() const

Returns how high it stands above the cell's bottom (height).

Member Variable Documentation

double QcPathStand::height

Height of the feet above the cell's bottom.

bool QcPathStand::hurts

The floor hurts (magma).

bool QcPathStand::ok

Whether a creature can stand there.

bool QcPathStand::panel

A cell of the body has a panel (an open door or trapdoor, decision E-909; bodies at most a block wide): steps from and to it check that they do not go through it.

bool QcPathStand::slippery

The floor is slippery (ice).

bool QcPathStand::slows

The feet cell slows (cobwebs).

bool QcPathStand::water

Whether it is in water.