mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-15 21:39:39 +00:00
36 lines
621 B
C++
36 lines
621 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);
|
|
|
|
void setState(CharacterState state);
|
|
CharacterState getState() const
|
|
{ return mState; }
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* GAME_MWMECHANICS_CHARACTER_HPP */
|