2013-01-10 16:35:24 +00:00
|
|
|
#ifndef GAME_MWMECHANICS_CHARACTER_HPP
|
|
|
|
#define GAME_MWMECHANICS_CHARACTER_HPP
|
|
|
|
|
2013-01-12 16:49:08 +00:00
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
|
2013-01-10 16:35:24 +00:00
|
|
|
namespace MWMechanics
|
|
|
|
{
|
|
|
|
|
2013-01-12 18:10:27 +00:00
|
|
|
enum CharacterState {
|
|
|
|
CharState_Idle,
|
|
|
|
CharState_Dead
|
|
|
|
};
|
|
|
|
|
2013-01-12 15:12:12 +00:00
|
|
|
class CharacterController
|
|
|
|
{
|
2013-01-12 16:49:08 +00:00
|
|
|
MWWorld::Ptr mPtr;
|
2013-01-12 15:12:12 +00:00
|
|
|
|
2013-01-12 18:10:27 +00:00
|
|
|
CharacterState mState;
|
|
|
|
|
2013-01-12 16:49:08 +00:00
|
|
|
public:
|
2013-01-12 18:10:27 +00:00
|
|
|
CharacterController(const MWWorld::Ptr &ptr, CharacterState state)
|
|
|
|
: mPtr(ptr), mState(state)
|
2013-01-12 16:49:08 +00:00
|
|
|
{ }
|
2013-01-12 18:10:27 +00:00
|
|
|
|
|
|
|
CharacterState getState() const
|
|
|
|
{ return mState; }
|
|
|
|
|
|
|
|
void setState(CharacterState state)
|
|
|
|
{ mState = state; }
|
2013-01-12 15:12:12 +00:00
|
|
|
};
|
|
|
|
|
2013-01-10 16:35:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* GAME_MWMECHANICS_CHARACTER_HPP */
|