Animation Namespace Reference


Enumerations

enum  Sequence {
  walk = 0, run = 1, stand = 2, jumpUp = 3,
  standUp = 4, readyWeapon = 5, unreadyWeapon = 6, attack = 7,
  advance = 8, retreat = 9, runningJump = 10, shakeHead = 11,
  step = 12, stumbleBackwards = 13, die = 14, combatStand = 15,
  land = 16, jump = 17, airwalkJump = 18, climb16 = 19,
  climb24 = 20, climb32 = 21, climb40 = 22, climb48 = 23,
  climb56 = 24, climb64 = 25, climb72 = 26, cast1 = 27,
  cast2 = 28, cast3 = 29, cast4 = 30, cast5 = 31,
  lookLeft = 32, lookRight = 33, startKneeling = 34, kneel = 35,
  keepBalance = 42, fallBackwards = 44, hang = 45, climbUp = 46,
  idle1 = 47, idle2 = 48, kneel2 = 49, stopKneeling = 50,
  sitDownInChair = 51, standUpFromChair = 52, talk = 53, work = 55,
  drown = 56, burn = 57, kick = 58, startBlock = 59,
  stopBlock = 60
}
enum  Result { FAILURE = 0, SUCCESS = 1, END_OFF_LAND = 2 }

Functions

bool isCombatAnim (const Sequence anim)
Sequence checkWeapon (const Sequence nextanim, const Sequence lastanim)


Enumeration Type Documentation

enum Animation::Sequence

Enumerator:
walk 
run 
stand 
jumpUp 
standUp 
readyWeapon 
unreadyWeapon 
attack 
advance 
retreat 
runningJump 
shakeHead 
step 
stumbleBackwards 
die 
combatStand 
land 
jump 
airwalkJump 
climb16 
climb24 
climb32 
climb40 
climb48 
climb56 
climb64 
climb72 
cast1 
cast2 
cast3 
cast4 
cast5 
lookLeft 
lookRight 
startKneeling 
kneel 
keepBalance 
fallBackwards 
hang 
climbUp 
idle1 
idle2 
kneel2 
stopKneeling 
sitDownInChair 
standUpFromChair 
talk 
work 
drown 
burn 
kick 
startBlock 
stopBlock 

Definition at line 24 of file Animation.h.

enum Animation::Result

Enumerator:
FAILURE 
SUCCESS 
END_OFF_LAND 

Definition at line 93 of file Animation.h.


Function Documentation

bool Animation::isCombatAnim ( const Sequence  anim  ) 

Definition at line 25 of file Animation.cpp.

References advance, attack, combatStand, kick, readyWeapon, retreat, startBlock, and stopBlock.

Referenced by checkWeapon(), and AvatarMoverProcess::handleNormalMode().

Sequence Animation::checkWeapon ( const Sequence  nextanim,
const Sequence  lastanim 
)

determines if we need to ready or unready our weapon

Definition at line 43 of file Animation.cpp.

References isCombatAnim(), readyWeapon, and unreadyWeapon.

Referenced by AvatarMoverProcess::handleCombatMode(), AvatarMoverProcess::handleNormalMode(), and AvatarMoverProcess::step().


Generated on Fri Jul 27 22:30:16 2007 for pentagram by  doxygen 1.4.7