OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
actor.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_MECHANICS_ACTOR_H
2 #define OPENMW_MECHANICS_ACTOR_H
3 
4 #include <memory>
5 
6 #include "aistate.hpp"
7 
8 namespace MWRender
9 {
10  class Animation;
11 }
12 namespace MWWorld
13 {
14  class Ptr;
15 }
16 
17 namespace MWMechanics
18 {
19  class CharacterController;
20 
22  class Actor
23  {
24  public:
25  Actor(const MWWorld::Ptr& ptr, MWRender::Animation* animation);
26 
28  void updatePtr(const MWWorld::Ptr& newPtr);
29 
31 
33 
34  private:
35  std::auto_ptr<CharacterController> mCharacterController;
36 
38  };
39 
40 }
41 
42 #endif
std::auto_ptr< CharacterController > mCharacterController
Definition: actor.hpp:35
Definition: animation.hpp:77
AiState mAiState
Definition: actor.hpp:37
Holds temporary state for an actor that will be discarded when the actor leaves the scene...
Definition: actor.hpp:22
Definition: character.hpp:145
AiState & getAiState()
Definition: actor.cpp:23
CharacterController * getCharacterController()
Definition: actor.cpp:18
Actor(const MWWorld::Ptr &ptr, MWRender::Animation *animation)
Definition: actor.cpp:8
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
void updatePtr(const MWWorld::Ptr &newPtr)
Notify this actor of its new base object Ptr, use when the object changed cells.
Definition: actor.cpp:13