ScummVM API documentation
Ultima::Ultima8::Pathfinder Class Reference

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
 
Std::priority_queue< PathNode *, Std::vector< PathNode * >, PathNodeCmp_nodes
 
Std::vector< PathNode * > _cleanupNodes
 

Member Data Documentation

◆ _cleanupNodes

Std::vector<PathNode *> Ultima::Ultima8::Pathfinder::_cleanupNodes
protected

List of nodes for garbage collection later and order is not important


The documentation for this class was generated from the following file: