QtCraft API C++ classes QML types Handbook

QcMobLegs Namespace

Where a creature on a long walk goes first (decision E-423): a path search reaches only so far (QcPathPlanner), so a walk to a goal farther than the routes' reach goes in legs, each to a cell the routes name (a villager's: the roads of its village, QcVillagerRoads). More...

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

Classes

struct Budget
class Routes
struct State
struct Towards
struct Way

Detailed Description

A walker in water without a path from there first swims to the shore they name. The state is the creature's own (QcMobLegs::State); asking the routes costs, so the caller's budget limits it per tick.

Classes

class Budget

How many questions to the routes are left this tick. More...

class Routes

Where legs come from. More...

class State

What a walker remembers of its way between ticks. More...

class Towards

The cell to search a path to, and how many questions it asked the routes (the caller takes them from its budget). More...

class Way

The shore to swim to (none on dry ground or while a path leads on), and whether the routes were asked. More...