1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-11 00:39:59 +00:00
OpenMW/apps/openmw/mwmechanics/character.hpp

35 lines
576 B
C++

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