QtCraft API C++ classes QML types Handbook

QcPathResult Struct

A path as feet cells after the start, in order. More...

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

Public Variables

std::vector<QcBlockPos> cells
int nodes
bool reachesGoal
bool started

Detailed Description

Member Variable Documentation

std::vector<QcBlockPos> QcPathResult::cells

The cells.

int QcPathResult::nodes

Nodes expanded (counted against the budgets).

bool QcPathResult::reachesGoal

The last cell is at the goal; otherwise the path leads to the reached cell closest to it (a partial path: the goal is out of reach, behind the node budget or beyond maxLength).

bool QcPathResult::started

The creature stood somewhere a search can start from.