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 namespace MWRender
7 {
8  class Animation;
9 }
10 namespace MWWorld
11 {
12  class Ptr;
13 }
14 
15 namespace MWMechanics
16 {
17  class CharacterController;
18 
20  class Actor
21  {
22  public:
23  Actor(const MWWorld::Ptr& ptr, MWRender::Animation* animation);
24 
26  void updatePtr(const MWWorld::Ptr& newPtr);
27 
29 
30  private:
31  std::unique_ptr<CharacterController> mCharacterController;
32  };
33 
34 }
35 
36 #endif
std::unique_ptr< CharacterController > mCharacterController
Definition: actor.hpp:31
Definition: animation.hpp:85
Holds temporary state for an actor that will be discarded when the actor leaves the scene...
Definition: actor.hpp:20
Definition: character.hpp:154
CharacterController * getCharacterController()
Definition: actor.cpp:17
Actor(const MWWorld::Ptr &ptr, MWRender::Animation *animation)
Definition: actor.cpp:7
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:12