22 #ifndef ULTIMA8_WORLD_ACTORS_PATHFINDER_H 23 #define ULTIMA8_WORLD_ACTORS_PATHFINDER_H 25 #include "ultima/shared/std/containers.h" 26 #include "ultima/ultima8/misc/direction.h" 27 #include "ultima/ultima8/misc/point3.h" 28 #include "ultima/ultima8/world/actors/animation.h" 40 _lastAnim(Animation::walk), _flipped(
false),
41 _firstStep(
true), _combat(
false) {};
43 Animation::Sequence _lastAnim;
49 void load(
const Actor *actor);
50 bool checkPoint(
const Point3 &pt,
int range)
const;
51 bool checkItem(
const Item *item,
int xyRange,
int zRange)
const;
52 bool checkHit(
const Actor *actor,
const Item *target)
const;
56 Animation::Sequence _action;
65 bool operator()(
const PathNode *n1,
const PathNode *n2)
const;
74 void setTarget(
const Point3 &pt);
75 void setTarget(
Item *item,
bool hit =
false);
83 #ifdef DEBUG_PATHFINDER 84 static ObjId _visualDebugActor;
96 int32 _actorXd, _actorYd, _actorZd;
104 bool alreadyVisited(
const Point3 &pt)
const;
107 void expandNode(PathNode *node);
108 unsigned int costHeuristic(PathNode *node)
const;
109 bool checkTarget(
const PathNode *node)
const;
Definition: pathfinder.h:63
Std::vector< PathNode * > _cleanupNodes
Definition: pathfinder.h:102
Definition: pathfinder.h:55
Definition: detection.h:27
Definition: containers.h:234
Definition: pathfinder.h:68
Definition: pathfinder.h:38
Definition: containers.h:38