1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00
OpenMW/apps/openmw/mwmechanics/character.hpp

41 lines
703 B
C++

#ifndef GAME_MWMECHANICS_CHARACTER_HPP
#define GAME_MWMECHANICS_CHARACTER_HPP
#include "../mwworld/ptr.hpp"
namespace MWRender
{
class Animation;
}
namespace MWMechanics
{
enum CharacterState {
CharState_Idle,
CharState_Dead
};
class CharacterController
{
MWWorld::Ptr mPtr;
MWRender::Animation *mAnimation;
CharacterState mState;
public:
CharacterController(const MWWorld::Ptr &ptr, MWRender::Animation *anim, CharacterState state)
: mPtr(ptr), mAnimation(anim), mState(state)
{ }
CharacterState getState() const
{ return mState; }
void setState(CharacterState state)
{ mState = state; }
};
}
#endif /* GAME_MWMECHANICS_CHARACTER_HPP */