1 #ifndef GAME_MWCLASS_DOOR_H
2 #define GAME_MWCLASS_DOOR_H
6 #include "../mwworld/class.hpp"
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: door.cpp:63
virtual bool allowTelekinesis(const MWWorld::ConstPtr &ptr) const
Return whether this class of object can be activated with telekinesis.
Definition: door.cpp:247
static void registerSelf()
Definition: door.cpp:262
virtual void lock(const MWWorld::Ptr &ptr, int lockLevel=0) const
Lock object.
Definition: door.cpp:229
virtual std::string getScript(const MWWorld::ConstPtr &ptr) const
Return name of the script attached to ptr.
Definition: door.cpp:255
virtual MWGui::ToolTipInfo getToolTipInfo(const MWWorld::ConstPtr &ptr, int count) const
Definition: door.cpp:276
Definition: renderinginterface.hpp:9
Definition: livecellref.hpp:77
Definition: physicssystem.hpp:51
virtual std::string getName(const MWWorld::ConstPtr &ptr) const
Definition: door.cpp:92
Base class for referenceable esm records.
Definition: class.hpp:52
virtual void insertObjectRendering(const MWWorld::Ptr &ptr, const std::string &model, MWRender::RenderingInterface &renderingInterface) const
Add reference into a cell for rendering.
Definition: door.cpp:56
virtual void readAdditionalState(const MWWorld::Ptr &ptr, const ESM::ObjectState &state) const
Read additional state from state into ptr.
Definition: door.cpp:375
void ensureCustomData(const MWWorld::Ptr &ptr) const
Definition: door.cpp:346
virtual std::string getModel(const MWWorld::ConstPtr &ptr) const
Definition: door.cpp:81
<
Definition: objectstate.hpp:19
Mutable state of a cell.
Definition: cellstore.hpp:53
Pointer to a const LiveCellRef.
Definition: ptr.hpp:90
virtual int getDoorState(const MWWorld::ConstPtr &ptr) const
0 = nothing, 1 = opening, 2 = closing
Definition: door.cpp:357
virtual bool hasToolTip(const MWWorld::ConstPtr &ptr) const
Definition: door.cpp:269
virtual void setDoorState(const MWWorld::Ptr &ptr, int state) const
This does not actually cause the door to move. Use World::activateDoor instead.
Definition: door.cpp:365
virtual void writeAdditionalState(const MWWorld::ConstPtr &ptr, ESM::ObjectState &state) const
Write additional state from ptr into state.
Definition: door.cpp:386
virtual bool canLock(const MWWorld::ConstPtr &ptr) const
Definition: door.cpp:242
virtual void unlock(const MWWorld::Ptr &ptr) const
Unlock object.
Definition: door.cpp:237
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
static std::string getDestination(const MWWorld::LiveCellRef< ESM::Door > &door)
Definition: door.cpp:308
virtual MWWorld::Ptr copyToCellImpl(const MWWorld::ConstPtr &ptr, MWWorld::CellStore &cell) const
Definition: door.cpp:339
virtual boost::shared_ptr< MWWorld::Action > activate(const MWWorld::Ptr &ptr, const MWWorld::Ptr &actor) const
Generate action for activation.
Definition: door.cpp:99