OpenMW
Public Member Functions | Static Public Member Functions | Private Member Functions
MWClass::Door Class Reference

#include <door.hpp>

List of all members.

Public Member Functions

virtual void insertObjectRendering (const MWWorld::Ptr &ptr, MWRender::RenderingInterface &renderingInterface) const
 Add reference into a cell for rendering.
virtual void insertObject (const MWWorld::Ptr &ptr, MWWorld::PhysicsSystem &physics) const
 Add reference into a cell for rendering (default implementation: don't render anything).
virtual std::string getName (const MWWorld::Ptr &ptr) const
virtual boost::shared_ptr
< MWWorld::Action
activate (const MWWorld::Ptr &ptr, const MWWorld::Ptr &actor) const
 Generate action for activation.
virtual bool hasToolTip (const MWWorld::Ptr &ptr) const
virtual MWGui::ToolTipInfo getToolTipInfo (const MWWorld::Ptr &ptr) const
virtual void lock (const MWWorld::Ptr &ptr, int lockLevel) const
 Lock object.
virtual void unlock (const MWWorld::Ptr &ptr) const
 Unlock object.
virtual std::string getScript (const MWWorld::Ptr &ptr) const
 Return name of the script attached to ptr.
virtual std::string getModel (const MWWorld::Ptr &ptr) const

Static Public Member Functions

static std::string getDestination (const MWWorld::LiveCellRef< ESM::Door > &door)
static void registerSelf ()

Private Member Functions

virtual MWWorld::Ptr copyToCellImpl (const MWWorld::Ptr &ptr, MWWorld::CellStore &cell) const

Member Function Documentation

boost::shared_ptr< MWWorld::Action > MWClass::Door::activate ( const MWWorld::Ptr ptr,
const MWWorld::Ptr actor 
) const [virtual]

Generate action for activation.

Todo:
remove this if clause once ActionTeleport can also support other actors

Reimplemented from MWWorld::Class.

MWWorld::Ptr MWClass::Door::copyToCellImpl ( const MWWorld::Ptr ptr,
MWWorld::CellStore cell 
) const [private, virtual]

Reimplemented from MWWorld::Class.

std::string MWClass::Door::getDestination ( const MWWorld::LiveCellRef< ESM::Door > &  door) [static]
Returns:
destination cell name or token
std::string MWClass::Door::getModel ( const MWWorld::Ptr ptr) const [virtual]

Reimplemented from MWWorld::Class.

std::string MWClass::Door::getName ( const MWWorld::Ptr ptr) const [virtual]
Returns:
name (the one that is to be presented to the user; not the internal one); can return an empty string.

Implements MWWorld::Class.

std::string MWClass::Door::getScript ( const MWWorld::Ptr ptr) const [virtual]

Return name of the script attached to ptr.

Reimplemented from MWWorld::Class.

Returns:
the content of the tool tip to be displayed. raises exception if the object has no tooltip.

Reimplemented from MWWorld::Class.

bool MWClass::Door::hasToolTip ( const MWWorld::Ptr ptr) const [virtual]
Returns:
true if this object has a tooltip when focused (default implementation: false)

Reimplemented from MWWorld::Class.

void MWClass::Door::insertObject ( const MWWorld::Ptr ptr,
MWWorld::PhysicsSystem physics 
) const [virtual]

Add reference into a cell for rendering (default implementation: don't render anything).

Reimplemented from MWWorld::Class.

void MWClass::Door::insertObjectRendering ( const MWWorld::Ptr ptr,
MWRender::RenderingInterface renderingInterface 
) const [virtual]

Add reference into a cell for rendering.

Reimplemented from MWWorld::Class.

void MWClass::Door::lock ( const MWWorld::Ptr ptr,
int  lockLevel 
) const [virtual]

Lock object.

Reimplemented from MWWorld::Class.

void MWClass::Door::registerSelf ( ) [static]
void MWClass::Door::unlock ( const MWWorld::Ptr ptr) const [virtual]

Unlock object.

Reimplemented from MWWorld::Class.


The documentation for this class was generated from the following files: