OpenMW
Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes
MWMechanics::CharacterController Class Reference

#include <character.hpp>

List of all members.

Public Member Functions

 CharacterController (const MWWorld::Ptr &ptr, MWRender::Animation *anim)
virtual ~CharacterController ()
void updateContinuousVfx ()
void updatePtr (const MWWorld::Ptr &ptr)
void update (float duration)
void playGroup (const std::string &groupname, int mode, int count)
void skipAnim ()
bool isAnimPlaying (const std::string &groupName)
void kill ()
void resurrect ()
bool isDead () const
void forceStateUpdate ()

Private Types

typedef std::deque< std::pair
< std::string, size_t > > 
AnimationQueue

Private Member Functions

void refreshCurrentAnims (CharacterState idle, CharacterState movement, bool force=false)
void clearAnimQueue ()
bool updateNpcState (bool onground, bool inwater, bool isrunning, bool sneak)
void updateVisibility ()

Static Private Member Functions

static void getWeaponGroup (WeaponType weaptype, std::string &group)
static
MWWorld::ContainerStoreIterator 
getActiveWeapon (NpcStats &stats, MWWorld::InventoryStore &inv, WeaponType *weaptype)

Private Attributes

MWWorld::Ptr mPtr
MWRender::AnimationmAnimation
AnimationQueue mAnimQueue
CharacterState mIdleState
std::string mCurrentIdle
CharacterState mMovementState
std::string mCurrentMovement
float mMovementSpeed
CharacterState mDeathState
std::string mCurrentDeath
UpperBodyCharacterState mUpperBodyState
JumpingState mJumpState
std::string mCurrentJump
WeaponType mWeaponType
std::string mCurrentWeapon
bool mSkipAnim
float mSecondsOfSwimming
float mSecondsOfRunning
std::string mAttackType

Member Typedef Documentation

typedef std::deque<std::pair<std::string,size_t> > MWMechanics::CharacterController::AnimationQueue [private]

Constructor & Destructor Documentation


Member Function Documentation

void MWMechanics::CharacterController::getWeaponGroup ( WeaponType  weaptype,
std::string &  group 
) [static, private]
bool MWMechanics::CharacterController::isAnimPlaying ( const std::string &  groupName)
void MWMechanics::CharacterController::playGroup ( const std::string &  groupname,
int  mode,
int  count 
)
void MWMechanics::CharacterController::refreshCurrentAnims ( CharacterState  idle,
CharacterState  movement,
bool  force = false 
) [private]
void MWMechanics::CharacterController::update ( float  duration)
bool MWMechanics::CharacterController::updateNpcState ( bool  onground,
bool  inwater,
bool  isrunning,
bool  sneak 
) [private]

Member Data Documentation


The documentation for this class was generated from the following files: