OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
activator.hpp
Go to the documentation of this file.
1 #ifndef GAME_MWCLASS_ACTIVATOR_H
2 #define GAME_MWCLASS_ACTIVATOR_H
3 
4 #include "../mwworld/class.hpp"
5 
6 namespace MWClass
7 {
8  class Activator : public MWWorld::Class
9  {
10 
11  virtual MWWorld::Ptr copyToCellImpl(const MWWorld::ConstPtr &ptr, MWWorld::CellStore &cell) const;
12 
13  public:
14 
15  virtual void insertObjectRendering (const MWWorld::Ptr& ptr, const std::string& model, MWRender::RenderingInterface& renderingInterface) const;
17 
18  virtual void insertObject(const MWWorld::Ptr& ptr, const std::string& model, MWPhysics::PhysicsSystem& physics) const;
19 
20  virtual std::string getName (const MWWorld::ConstPtr& ptr) const;
23 
24  virtual bool hasToolTip (const MWWorld::ConstPtr& ptr) const;
26 
27  virtual bool allowTelekinesis(const MWWorld::ConstPtr& ptr) const;
29 
30  virtual MWGui::ToolTipInfo getToolTipInfo (const MWWorld::ConstPtr& ptr, int count) const;
32 
33  virtual std::string getScript (const MWWorld::ConstPtr& ptr) const;
35 
36  virtual boost::shared_ptr<MWWorld::Action> activate (const MWWorld::Ptr& ptr, const MWWorld::Ptr& actor) const;
38 
39  static void registerSelf();
40 
41  virtual std::string getModel(const MWWorld::ConstPtr &ptr) const;
42  };
43 }
44 
45 #endif
Definition: tooltips.hpp:18
virtual bool hasToolTip(const MWWorld::ConstPtr &ptr) const
Definition: activator.cpp:77
virtual std::string getScript(const MWWorld::ConstPtr &ptr) const
Return name of the script attached to ptr.
Definition: activator.cpp:62
virtual boost::shared_ptr< MWWorld::Action > activate(const MWWorld::Ptr &ptr, const MWWorld::Ptr &actor) const
Generate action for activation.
Definition: activator.cpp:106
virtual MWWorld::Ptr copyToCellImpl(const MWWorld::ConstPtr &ptr, MWWorld::CellStore &cell) const
Definition: activator.cpp:122
Definition: renderinginterface.hpp:9
Definition: physicssystem.hpp:51
Base class for referenceable esm records.
Definition: class.hpp:52
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: activator.cpp:37
virtual std::string getModel(const MWWorld::ConstPtr &ptr) const
Definition: activator.cpp:44
virtual MWGui::ToolTipInfo getToolTipInfo(const MWWorld::ConstPtr &ptr, int count) const
Definition: activator.cpp:88
static void registerSelf()
Definition: activator.cpp:70
Mutable state of a cell.
Definition: cellstore.hpp:53
Definition: activator.hpp:8
Pointer to a const LiveCellRef.
Definition: ptr.hpp:90
virtual void insertObjectRendering(const MWWorld::Ptr &ptr, const std::string &model, MWRender::RenderingInterface &renderingInterface) const
Add reference into a cell for rendering.
Definition: activator.cpp:30
virtual bool allowTelekinesis(const MWWorld::ConstPtr &ptr) const
Return whether this class of object can be activated with telekinesis.
Definition: activator.cpp:84
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
virtual std::string getName(const MWWorld::ConstPtr &ptr) const
Definition: activator.cpp:55