OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
static.hpp
Go to the documentation of this file.
1 #ifndef GAME_MWCLASS_STATIC_H
2 #define GAME_MWCLASS_STATIC_H
3 
4 #include "../mwworld/class.hpp"
5 
6 namespace MWClass
7 {
8  class Static : public MWWorld::Class
9  {
10  virtual MWWorld::Ptr copyToCellImpl(const MWWorld::ConstPtr &ptr, MWWorld::CellStore &cell) const;
11 
12  public:
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  static void registerSelf();
24 
25  virtual std::string getModel(const MWWorld::ConstPtr &ptr) const;
26  };
27 }
28 
29 #endif
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: static.cpp:22
virtual std::string getName(const MWWorld::ConstPtr &ptr) const
Definition: static.cpp:39
Definition: renderinginterface.hpp:9
virtual void insertObjectRendering(const MWWorld::Ptr &ptr, const std::string &model, MWRender::RenderingInterface &renderingInterface) const
Add reference into a cell for rendering.
Definition: static.cpp:15
Definition: physicssystem.hpp:51
static void registerSelf()
Definition: static.cpp:44
virtual MWWorld::Ptr copyToCellImpl(const MWWorld::ConstPtr &ptr, MWWorld::CellStore &cell) const
Definition: static.cpp:51
Base class for referenceable esm records.
Definition: class.hpp:52
Definition: static.hpp:8
Mutable state of a cell.
Definition: cellstore.hpp:53
Pointer to a const LiveCellRef.
Definition: ptr.hpp:90
virtual std::string getModel(const MWWorld::ConstPtr &ptr) const
Definition: static.cpp:28
Pointer to a LiveCellRef.
Definition: ptr.hpp:19