#include <Pathfinder.h>
Public Member Functions | |
| void | load (Actor *actor) |
| bool | checkPoint (sint32 x_, sint32 y_, sint32 z_, int range) |
| bool | checkItem (Item *item, int xyRange, int zRange) |
| bool | checkHit (Actor *actor, Actor *target) |
Public Attributes | |
| sint32 | x |
| sint32 | y |
| sint32 | z |
| Animation::Sequence | lastanim |
| uint32 | direction |
| bool | flipped |
| bool | firststep |
| bool | combat |
Definition at line 30 of file Pathfinder.h.
Definition at line 91 of file Pathfinder.cpp.
References Animation::attack, Item::getDirToItemCentre(), Object::getObjId(), AnimationTracker::hitSomething(), AnimationTracker::init(), pout, and AnimationTracker::step().
Referenced by Pathfinder::checkTarget().
| bool PathfindingState::checkItem | ( | Item * | item, | |
| int | xyRange, | |||
| int | zRange | |||
| ) |
Definition at line 64 of file Pathfinder.cpp.
References Item::getFootpadWorld(), Item::getLocationAbsolute(), x, and y.
Referenced by Pathfinder::checkTarget().
| void PathfindingState::load | ( | Actor * | actor | ) |
Definition at line 47 of file Pathfinder.cpp.
References Actor::ACT_FIRSTSTEP, combat, direction, firststep, Item::FLG_FLIPPED, flipped, Actor::getActorFlags(), Actor::getDir(), Item::getFlags(), Actor::getLastAnim(), Item::getLocation(), Actor::isInCombat(), lastanim, x, y, and z.
Referenced by Pathfinder::init().
Definition at line 37 of file Pathfinder.h.
Referenced by Pathfinder::expandNode(), load(), and Pathfinder::setTarget().
Definition at line 34 of file Pathfinder.h.
Referenced by Pathfinder::expandNode(), AnimationTracker::init(), load(), and Pathfinder::newNode().
Definition at line 36 of file Pathfinder.h.
Referenced by AnimationTracker::init(), load(), and AnimationTracker::updateState().
Definition at line 35 of file Pathfinder.h.
Referenced by AnimationTracker::init(), load(), and AnimationTracker::updateState().
Definition at line 33 of file Pathfinder.h.
Referenced by Pathfinder::expandNode(), AnimationTracker::init(), and load().
Definition at line 32 of file Pathfinder.h.
Referenced by checkItem(), checkPoint(), Pathfinder::costHeuristic(), drawedge(), drawpath(), Pathfinder::expandNode(), AnimationTracker::init(), load(), Pathfinder::newNode(), and AnimationTracker::updateState().
Definition at line 32 of file Pathfinder.h.
Referenced by checkItem(), checkPoint(), Pathfinder::costHeuristic(), drawedge(), drawpath(), Pathfinder::expandNode(), AnimationTracker::init(), load(), Pathfinder::newNode(), and AnimationTracker::updateState().
Definition at line 32 of file Pathfinder.h.
Referenced by checkPoint(), drawedge(), drawpath(), Pathfinder::expandNode(), AnimationTracker::init(), load(), Pathfinder::newNode(), and AnimationTracker::updateState().
1.4.7