QtCraft API C++ classes QML types Handbook

QcPathRequest Struct

What one search looks for (decision E-400). More...

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

Public Variables

int bodyCells
int closeEnough
QcBlockPos goal
int maxLength
int maxNodes
QcBlockPos start

Detailed Description

Member Variable Documentation

int QcPathRequest::bodyCells

Columns of the body along each axis (QcPathRules::footprint): a feet cell counts as at the goal when the body's columns (from it up to this many cells on) hold the goal's cell.

int QcPathRequest::closeEnough

Cells around the goal (horizontally, and one up or down) that count as there: a hunter only needs to come next to its prey.