OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
creaturelevlist.hpp
Go to the documentation of this file.
1 #ifndef GAME_MWCLASS_CREATURELEVLIST_H
2 #define GAME_MWCLASS_CREATURELEVLIST_H
3 
4 #include "../mwworld/class.hpp"
5 
6 namespace MWClass
7 {
9  {
10  void ensureCustomData (const MWWorld::Ptr& ptr) const;
11 
12  public:
13 
14  virtual std::string getName (const MWWorld::ConstPtr& ptr) const;
17 
18  static void registerSelf();
19 
20  virtual void getModelsToPreload(const MWWorld::Ptr& ptr, std::vector<std::string>& models) const;
22 
23  virtual void insertObjectRendering (const MWWorld::Ptr& ptr, const std::string& model, MWRender::RenderingInterface& renderingInterface) const;
25 
26  virtual void readAdditionalState (const MWWorld::Ptr& ptr, const ESM::ObjectState& state) const;
28 
29  virtual void writeAdditionalState (const MWWorld::ConstPtr& ptr, ESM::ObjectState& state) const;
31 
32  virtual void respawn (const MWWorld::Ptr& ptr) const;
33  };
34 }
35 
36 #endif
void ensureCustomData(const MWWorld::Ptr &ptr) const
Definition: creaturelevlist.cpp:131
virtual void writeAdditionalState(const MWWorld::ConstPtr &ptr, ESM::ObjectState &state) const
Write additional state from ptr into state.
Definition: creaturelevlist.cpp:157
virtual void respawn(const MWWorld::Ptr &ptr) const
Definition: creaturelevlist.cpp:42
Definition: renderinginterface.hpp:9
Base class for referenceable esm records.
Definition: class.hpp:52
virtual std::string getName(const MWWorld::ConstPtr &ptr) const
Definition: creaturelevlist.cpp:37
virtual void getModelsToPreload(const MWWorld::Ptr &ptr, std::vector< std::string > &models) const
Get a list of models to preload that this object may use (directly or indirectly). default implementation: list getModel().
Definition: creaturelevlist.cpp:78
<
Definition: objectstate.hpp:19
Definition: creaturelevlist.hpp:8
Pointer to a const LiveCellRef.
Definition: ptr.hpp:90
virtual void readAdditionalState(const MWWorld::Ptr &ptr, const ESM::ObjectState &state) const
Read additional state from state into ptr.
Definition: creaturelevlist.cpp:143
static void registerSelf()
Definition: creaturelevlist.cpp:71
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
virtual void insertObjectRendering(const MWWorld::Ptr &ptr, const std::string &model, MWRender::RenderingInterface &renderingInterface) const
Add reference into a cell for rendering.
Definition: creaturelevlist.cpp:96