dao::world::WalkPath
struct
The path a creature walks: its waypoints from start to end, and the one it is heading for.
Declared in dao/World.h.
Functions
Length()
float Length() const
Returns the path’s total length along its waypoints, in metres.
Remaining()
float Remaining(const Vector &from) const
Returns the distance still to walk, in metres: from from to the next waypoint, then along the rest of the path.
| Parameter | |
|---|---|
from |
the creature’s current position |
Fields
| Field | Type | |
|---|---|---|
next |
std::size_t = 0 |
index of the waypoint the creature is walking to |
waypoints |
std::vector<Vector> |