22 #ifndef WORLD_ACTORS_ANIMATIONTRACKER_H 23 #define WORLD_ACTORS_ANIMATIONTRACKER_H 25 #include "ultima/ultima8/world/actors/animation.h" 26 #include "ultima/ultima8/world/actors/pathfinder.h" 27 #include "ultima/ultima8/misc/point3.h" 44 bool init(
const Actor *actor, Animation::Sequence action, Direction dir,
72 Point3 getInterpolatedPosition(
int fc)
const;
75 void getSpeed(int32 &dx, int32 &dy, int32 &dz)
const;
90 void setTargetedMode(
const Point3 &pt);
95 bool isBlocked()
const {
98 bool isUnsupported()
const {
101 ObjId hitSomething()
const {
114 unsigned int getNextFrame(
unsigned int frame)
const;
115 void checkWeaponHit();
117 unsigned int _startFrame, _endFrame;
119 unsigned int _currentFrame;
130 int32 _targetDx, _targetDy, _targetDz;
131 int32 _targetOffGroundLeft;
132 bool _firstStep, _flipped;
void getSpeed(int32 &dx, int32 &dy, int32 &dz) const
get the difference between current position and previous position
Definition: anim_action.h:94
const AnimFrame * getAnimFrame() const
get the current AnimFrame
bool init(const Actor *actor, Animation::Sequence action, Direction dir, const PathfindingState *state=0)
uint32 getFrame() const
get the current (shape)frame
Definition: animation_tracker.h:78
Definition: detection.h:27
void updateActorFlags()
update the Actor with latest flags and animframe
bool stepFrom(const Point3 &pt)
Definition: pathfinder.h:38
Definition: animation_tracker.h:36
const AnimAction * getAnimAction() const
get the current AnimAction
Definition: animation_tracker.h:83
Definition: anim_action.h:33
void updateState(PathfindingState &state)
update the PathfindingState with latest coordinates and flags
Point3 getPosition() const
get the current position
Definition: animation_tracker.h:68
void evaluateMaxAnimTravel(int32 &max_endx, int32 &max_endy, Direction dir)