#include <AnimAction.h>
Public Types | |
AAF_TWOSTEP = 0x0001 | |
AAF_ATTACK = 0x0002 | |
AAF_LOOPING = 0x0004 | |
AAF_UNSTOPPABLE = 0x0008 | |
AAF_LOOPING2 = 0x0010 | |
AAF_HANGING = 0x0080 | |
AAF_CRUS_16DIRS = 0x4000 | |
AAF_DESTROYACTOR = 0x8000 | |
enum | AnimActionFlags { AAF_TWOSTEP = 0x0001, AAF_ATTACK = 0x0002, AAF_LOOPING = 0x0004, AAF_UNSTOPPABLE = 0x0008, AAF_LOOPING2 = 0x0010, AAF_HANGING = 0x0080, AAF_CRUS_16DIRS = 0x4000, AAF_DESTROYACTOR = 0x8000 } |
Public Member Functions | |
void | getAnimRange (Actor *actor, int dir, unsigned int &startframe, unsigned int &endframe) const |
void | getAnimRange (unsigned int lastanim, int lastdir, bool firststep, int dir, unsigned int &startframe, unsigned int &endframe) const |
unsigned int | getDirCount () const |
Public Attributes | |
uint32 | shapenum |
uint32 | action |
std::vector< AnimFrame > | frames [16] |
unsigned int | size |
int | framerepeat |
uint32 | flags |
unsigned int | dircount |
Definition at line 44 of file AnimAction.h.
AAF_TWOSTEP | |
AAF_ATTACK | |
AAF_LOOPING | |
AAF_UNSTOPPABLE | |
AAF_LOOPING2 | |
AAF_HANGING | |
AAF_CRUS_16DIRS | |
AAF_DESTROYACTOR |
Definition at line 76 of file AnimAction.h.
void AnimAction::getAnimRange | ( | unsigned int | lastanim, | |
int | lastdir, | |||
bool | firststep, | |||
int | dir, | |||
unsigned int & | startframe, | |||
unsigned int & | endframe | |||
) | const |
return the range of the animation to play
lastanim | The lastanim of the Actor | |
lastdir | The direction of the Actor | |
firststep | The firststep flag of the Actor | |
dir | The direction | |
startframe | The first frame to play | |
endframe | The frame after the last frame to play |
Definition at line 23 of file AnimAction.cpp.
References AAF_LOOPING, AAF_LOOPING2, AAF_TWOSTEP, action, flags, and size.
void AnimAction::getAnimRange | ( | Actor * | actor, | |
int | dir, | |||
unsigned int & | startframe, | |||
unsigned int & | endframe | |||
) | const |
return the range of the animation to play
actor | The actor to play the animation for | |
dir | The direction | |
startframe | The first frame to play | |
endframe | The frame after the last frame to play |
Definition at line 57 of file AnimAction.cpp.
References Actor::ACT_FIRSTSTEP, Actor::getActorFlags(), Actor::getDir(), and Actor::getLastAnim().
Referenced by AnimationTracker::init().
unsigned int AnimAction::getDirCount | ( | ) | const |
Definition at line 46 of file AnimAction.h.
Referenced by getAnimRange(), and AnimationTracker::save().
unsigned int AnimAction::dircount |
Definition at line 53 of file AnimAction.h.
Definition at line 51 of file AnimAction.h.
Referenced by getAnimRange(), AnimationTracker::getNextFrame(), AnimationTracker::init(), ActorAnimProcess::run(), AnimationTracker::step(), Actor::tryAnim(), and AnimationTracker::updateActorFlags().
Definition at line 50 of file AnimAction.h.
Referenced by AnimationTracker::getInterpolatedPosition(), and ActorAnimProcess::run().
std::vector<AnimFrame> AnimAction::frames[16] |
Definition at line 48 of file AnimAction.h.
Referenced by AnimationTracker::checkWeaponHit(), AnimationTracker::evaluateMaxAnimTravel(), AnimationTracker::getAnimFrame(), AnimationTracker::setTargetedMode(), and AnimationTracker::step().
unsigned int AnimAction::size |
Definition at line 49 of file AnimAction.h.
Referenced by getAnimRange(), and AnimationTracker::getNextFrame().