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