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 GAME_MWCLASS_MOBILE_H
2 #define GAME_MWCLASS_MOBILE_H
3 
4 #include "../mwworld/class.hpp"
5 
6 namespace ESM
7 {
8  struct GameSetting;
9 }
10 
11 namespace MWClass
12 {
14  class Actor : public MWWorld::Class
15  {
16  protected:
17 
18  Actor();
19 
20  public:
21  virtual ~Actor();
22 
23  virtual void adjustPosition(const MWWorld::Ptr& ptr, bool force) const;
26 
27  virtual void insertObject(const MWWorld::Ptr& ptr, const std::string& model, MWPhysics::PhysicsSystem& physics) const;
28 
29  virtual void block(const MWWorld::Ptr &ptr) const;
30 
31  virtual osg::Vec3f getRotationVector(const MWWorld::Ptr& ptr) const;
33 
34  virtual float getEncumbrance(const MWWorld::Ptr& ptr) const;
37 
38  virtual bool allowTelekinesis(const MWWorld::ConstPtr& ptr) const;
40 
41  virtual bool isActor() const;
42 
43  virtual bool canBeActivated(const MWWorld::Ptr& ptr) const;
44 
45  // not implemented
46  Actor(const Actor&);
47  Actor& operator= (const Actor&);
48  };
49 }
50 
51 #endif
Actor & operator=(const Actor &)
Actor()
Definition: actor.cpp:20
virtual void insertObject(const MWWorld::Ptr &ptr, const std::string &model, MWPhysics::PhysicsSystem &physics) const
Add reference into a cell for rendering (default implementation: don't render anything).
Definition: actor.cpp:29
Class holding functionality common to Creature and NPC.
Definition: actor.hpp:14
Definition: physicssystem.hpp:51
Base class for referenceable esm records.
Definition: class.hpp:52
virtual void adjustPosition(const MWWorld::Ptr &ptr, bool force) const
Definition: actor.cpp:24
Pointer to a const LiveCellRef.
Definition: ptr.hpp:90
virtual osg::Vec3f getRotationVector(const MWWorld::Ptr &ptr) const
Return desired rotations, as euler angles.
Definition: actor.cpp:64
virtual float getEncumbrance(const MWWorld::Ptr &ptr) const
Definition: actor.cpp:74
virtual ~Actor()
Definition: actor.cpp:22
virtual bool canBeActivated(const MWWorld::Ptr &ptr) const
Definition: actor.cpp:92
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
virtual bool isActor() const
Definition: actor.cpp:87
virtual bool allowTelekinesis(const MWWorld::ConstPtr &ptr) const
Return whether this class of object can be activated with telekinesis.
Definition: actor.cpp:83
virtual void block(const MWWorld::Ptr &ptr) const
Definition: actor.cpp:40