AnimAction Struct Reference

#include <AnimAction.h>

List of all members.

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< AnimFrameframes [16]
unsigned int size
int framerepeat
uint32 flags
unsigned int dircount


Detailed Description

Definition at line 44 of file AnimAction.h.


Member Enumeration Documentation

enum AnimAction::AnimActionFlags

Enumerator:
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.


Member Function Documentation

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

Parameters:
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

Parameters:
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


Member Data Documentation

uint32 AnimAction::action

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.

uint32 AnimAction::flags

Definition at line 51 of file AnimAction.h.

Referenced by getAnimRange(), AnimationTracker::getNextFrame(), AnimationTracker::init(), ActorAnimProcess::run(), AnimationTracker::step(), Actor::tryAnim(), and AnimationTracker::updateActorFlags().

int AnimAction::framerepeat

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().

uint32 AnimAction::shapenum

Definition at line 45 of file AnimAction.h.

Referenced by AnimationTracker::save().

unsigned int AnimAction::size

Definition at line 49 of file AnimAction.h.

Referenced by getAnimRange(), and AnimationTracker::getNextFrame().


The documentation for this struct was generated from the following files:
Generated on Fri Jul 27 22:28:38 2007 for pentagram by  doxygen 1.4.7