OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
bodypart.hpp
Go to the documentation of this file.
1 #ifndef GAME_MWCLASS_BODYPART_H
2 #define GAME_MWCLASS_BODYPART_H
3 
4 #include "../mwworld/class.hpp"
5 
6 namespace MWClass
7 {
8 
9  class BodyPart : public MWWorld::Class
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  static void registerSelf();
25 
26  virtual std::string getModel(const MWWorld::ConstPtr &ptr) const;
27  };
28 
29 }
30 
31 #endif
Definition: bodypart.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: bodypart.cpp:18
Definition: renderinginterface.hpp:9
Definition: physicssystem.hpp:51
virtual std::string getModel(const MWWorld::ConstPtr &ptr) const
Definition: bodypart.cpp:41
Base class for referenceable esm records.
Definition: class.hpp:52
Mutable state of a cell.
Definition: cellstore.hpp:53
virtual std::string getName(const MWWorld::ConstPtr &ptr) const
Definition: bodypart.cpp:29
Pointer to a const LiveCellRef.
Definition: ptr.hpp:90
static void registerSelf()
Definition: bodypart.cpp:34
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: bodypart.cpp:25
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
virtual MWWorld::Ptr copyToCellImpl(const MWWorld::ConstPtr &ptr, MWWorld::CellStore &cell) const
Definition: bodypart.cpp:11