OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
misc.hpp
Go to the documentation of this file.
1 #ifndef GAME_MWCLASS_MISC_H
2 #define GAME_MWCLASS_MISC_H
3 
4 #include "../mwworld/class.hpp"
5 
6 namespace MWClass
7 {
9  {
10  public:
11 
12  virtual MWWorld::Ptr copyToCell(const MWWorld::ConstPtr &ptr, MWWorld::CellStore &cell, int count) const;
13 
14  virtual void insertObjectRendering (const MWWorld::Ptr& ptr, const std::string& model, MWRender::RenderingInterface& renderingInterface) const;
16 
17  virtual void insertObject(const MWWorld::Ptr& ptr, const std::string& model, MWPhysics::PhysicsSystem& physics) const;
18 
19  virtual std::string getName (const MWWorld::ConstPtr& ptr) const;
22 
23  virtual boost::shared_ptr<MWWorld::Action> activate (const MWWorld::Ptr& ptr,
24  const MWWorld::Ptr& actor) const;
26 
27  virtual bool hasToolTip (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 int getValue (const MWWorld::ConstPtr& ptr) const;
38 
39  static void registerSelf();
40 
41  virtual std::string getUpSoundId (const MWWorld::ConstPtr& ptr) const;
43 
44  virtual std::string getDownSoundId (const MWWorld::ConstPtr& ptr) const;
46 
47  virtual std::string getInventoryIcon (const MWWorld::ConstPtr& ptr) const;
49 
50  virtual std::string getModel(const MWWorld::ConstPtr &ptr) const;
51 
52  virtual boost::shared_ptr<MWWorld::Action> use (const MWWorld::Ptr& ptr)
53  const;
55 
56  virtual float getWeight (const MWWorld::ConstPtr& ptr) const;
57 
58  virtual bool canSell (const MWWorld::ConstPtr& item, int npcServices) const;
59 
60  virtual bool isKey (const MWWorld::ConstPtr &ptr) const;
61 
62  virtual bool isGold (const MWWorld::ConstPtr& ptr) const;
63  };
64 }
65 
66 #endif
virtual std::string getModel(const MWWorld::ConstPtr &ptr) const
Definition: misc.cpp:50
Definition: misc.hpp:8
Definition: tooltips.hpp:18
virtual std::string getInventoryIcon(const MWWorld::ConstPtr &ptr) const
Return name of inventory icon.
Definition: misc.cpp:119
virtual boost::shared_ptr< MWWorld::Action > use(const MWWorld::Ptr &ptr) const
Generate action for using via inventory menu.
Definition: misc.cpp:216
virtual MWWorld::Ptr copyToCell(const MWWorld::ConstPtr &ptr, MWWorld::CellStore &cell, int count) const
Definition: misc.cpp:176
virtual std::string getName(const MWWorld::ConstPtr &ptr) const
Definition: misc.cpp:61
virtual std::string getDownSoundId(const MWWorld::ConstPtr &ptr) const
Return the put down sound Id.
Definition: misc.cpp:112
Definition: renderinginterface.hpp:9
virtual std::string getScript(const MWWorld::ConstPtr &ptr) const
Return name of the script attached to ptr.
Definition: misc.cpp:74
Definition: physicssystem.hpp:51
virtual bool isGold(const MWWorld::ConstPtr &ptr) const
Definition: misc.cpp:29
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: misc.cpp:45
Base class for referenceable esm records.
Definition: class.hpp:52
virtual bool isKey(const MWWorld::ConstPtr &ptr) const
Definition: misc.cpp:237
virtual float getWeight(const MWWorld::ConstPtr &ptr) const
Definition: misc.cpp:231
Mutable state of a cell.
Definition: cellstore.hpp:53
Pointer to a const LiveCellRef.
Definition: ptr.hpp:90
virtual int getValue(const MWWorld::ConstPtr &ptr) const
Return trade value of the object. Throws an exception, if the object can't be traded.
Definition: misc.cpp:81
static void registerSelf()
Definition: misc.cpp:98
virtual std::string getUpSoundId(const MWWorld::ConstPtr &ptr) const
Return the pick up sound Id.
Definition: misc.cpp:105
virtual bool hasToolTip(const MWWorld::ConstPtr &ptr) const
Definition: misc.cpp:126
virtual void insertObjectRendering(const MWWorld::Ptr &ptr, const std::string &model, MWRender::RenderingInterface &renderingInterface) const
Add reference into a cell for rendering.
Definition: misc.cpp:38
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
virtual MWGui::ToolTipInfo getToolTipInfo(const MWWorld::ConstPtr &ptr, int count) const
Definition: misc.cpp:133
virtual boost::shared_ptr< MWWorld::Action > activate(const MWWorld::Ptr &ptr, const MWWorld::Ptr &actor) const
Generate action for activation.
Definition: misc.cpp:68
virtual bool canSell(const MWWorld::ConstPtr &item, int npcServices) const
Determine whether or not item can be sold to an npc with the given npcServices.
Definition: misc.cpp:224