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

#include <lockpick.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 std::string getScript (const MWWorld::Ptr &ptr) const
 Return name of the script attached to ptr.
virtual std::pair< std::vector
< int >, bool > 
getEquipmentSlots (const MWWorld::Ptr &ptr) const
virtual int getValue (const MWWorld::Ptr &ptr) const
 Return trade value of the object. Throws an exception, if the object can't be traded.
virtual std::string getUpSoundId (const MWWorld::Ptr &ptr) const
 Return the pick up sound Id.
virtual std::string getDownSoundId (const MWWorld::Ptr &ptr) const
 Return the put down sound Id.
virtual std::string getInventoryIcon (const MWWorld::Ptr &ptr) const
 Return name of inventory icon.
virtual boost::shared_ptr
< MWWorld::Action
use (const MWWorld::Ptr &ptr) const
 Generate action for using via inventory menu.
virtual std::string getModel (const MWWorld::Ptr &ptr) const
virtual bool canSell (const MWWorld::Ptr &item, int npcServices) const
 Determine whether or not item can be sold to an npc with the given npcServices.
virtual float getWeight (const MWWorld::Ptr &ptr) const
virtual int getItemMaxHealth (const MWWorld::Ptr &ptr) const
 Return item max health or throw an exception, if class does not have item health.

Static Public Member Functions

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::Lockpick::activate ( const MWWorld::Ptr ptr,
const MWWorld::Ptr actor 
) const [virtual]

Generate action for activation.

Reimplemented from MWWorld::Class.

bool MWClass::Lockpick::canSell ( const MWWorld::Ptr item,
int  npcServices 
) const [virtual]

Determine whether or not item can be sold to an npc with the given npcServices.

Reimplemented from MWWorld::Class.

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

Reimplemented from MWWorld::Class.

std::string MWClass::Lockpick::getDownSoundId ( const MWWorld::Ptr ptr) const [virtual]

Return the put down sound Id.

Reimplemented from MWWorld::Class.

std::pair< std::vector< int >, bool > MWClass::Lockpick::getEquipmentSlots ( const MWWorld::Ptr ptr) const [virtual]
Returns:
first: Return IDs of the slot this object can be equipped in; second: can object stay stacked when equipped?

Reimplemented from MWWorld::Class.

std::string MWClass::Lockpick::getInventoryIcon ( const MWWorld::Ptr ptr) const [virtual]

Return name of inventory icon.

Reimplemented from MWWorld::Class.

int MWClass::Lockpick::getItemMaxHealth ( const MWWorld::Ptr ptr) const [virtual]

Return item max health or throw an exception, if class does not have item health.

Reimplemented from MWWorld::Class.

std::string MWClass::Lockpick::getModel ( const MWWorld::Ptr ptr) const [virtual]

Reimplemented from MWWorld::Class.

std::string MWClass::Lockpick::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::Lockpick::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.

std::string MWClass::Lockpick::getUpSoundId ( const MWWorld::Ptr ptr) const [virtual]

Return the pick up sound Id.

Reimplemented from MWWorld::Class.

int MWClass::Lockpick::getValue ( const MWWorld::Ptr ptr) const [virtual]

Return trade value of the object. Throws an exception, if the object can't be traded.

Reimplemented from MWWorld::Class.

float MWClass::Lockpick::getWeight ( const MWWorld::Ptr ptr) const [virtual]

Reimplemented from MWWorld::Class.

bool MWClass::Lockpick::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::Lockpick::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::Lockpick::insertObjectRendering ( const MWWorld::Ptr ptr,
MWRender::RenderingInterface renderingInterface 
) const [virtual]

Add reference into a cell for rendering.

Reimplemented from MWWorld::Class.

boost::shared_ptr< MWWorld::Action > MWClass::Lockpick::use ( const MWWorld::Ptr ptr) const [virtual]

Generate action for using via inventory menu.

Reimplemented from MWWorld::Class.


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