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) |
enum Animation::Sequence |
Definition at line 24 of file Animation.h.
enum Animation::Result |
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().
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().