Public Member Functions | |
| void | init (Actor *actor, PathfindingState *state=0) |
| void | setTarget (const Point3 &pt) |
| void | setTarget (Item *item, bool hit=false) |
| bool | canReach () |
| try to reach the target by pathfinding | |
| bool | pathfind (Std::vector< PathfindingAction > &path) |
| pathfind. If true, the found path is returned in path | |
Protected Member Functions | |
| bool | alreadyVisited (const Point3 &pt) const |
| void | newNode (PathNode *oldnode, PathfindingState &state, unsigned int steps) |
| void | expandNode (PathNode *node) |
| unsigned int | costHeuristic (PathNode *node) const |
| bool | checkTarget (const PathNode *node) const |
Protected Attributes | |
| PathfindingState | _start |
| Actor * | _actor |
| Point3 | _target |
| Item * | _targetItem |
| bool | _hitMode |
| int32 | _expandTime |
| int32 | _actorXd |
| int32 | _actorYd |
| int32 | _actorZd |
| Common::Array< PathfindingState > | _visited |
| PriorityQueue< PathNode *, Std::vector< PathNode * >, PathNodeCmp > | _nodes |
| Std::vector< PathNode * > | _cleanupNodes |
|
protected |
List of nodes for garbage collection later and order is not important