|
|
|
@ -83,8 +83,7 @@ namespace MWWorld
|
|
|
|
|
///< Add reference into a cell for rendering (default implementation: don't render anything).
|
|
|
|
|
|
|
|
|
|
virtual std::string getName (const ConstPtr& ptr) const = 0;
|
|
|
|
|
///< \return name (the one that is to be presented to the user; not the internal one);
|
|
|
|
|
/// can return an empty string.
|
|
|
|
|
///< \return name or ID; can return an empty string.
|
|
|
|
|
|
|
|
|
|
virtual void adjustPosition(const MWWorld::Ptr& ptr, bool force) const;
|
|
|
|
|
///< Adjust position to stand on ground. Must be called post model load
|
|
|
|
@ -95,7 +94,7 @@ namespace MWWorld
|
|
|
|
|
/// (default implementation: throw an exception)
|
|
|
|
|
|
|
|
|
|
virtual bool hasToolTip (const ConstPtr& ptr) const;
|
|
|
|
|
///< @return true if this object has a tooltip when focused (default implementation: false)
|
|
|
|
|
///< @return true if this object has a tooltip when focused (default implementation: true)
|
|
|
|
|
|
|
|
|
|
virtual MWGui::ToolTipInfo getToolTipInfo (const ConstPtr& ptr, int count) const;
|
|
|
|
|
///< @return the content of the tool tip to be displayed. raises exception if the object has no tooltip.
|
|
|
|
@ -140,10 +139,6 @@ namespace MWWorld
|
|
|
|
|
///< Play the appropriate sound for a blocked attack, depending on the currently equipped shield
|
|
|
|
|
/// (default implementation: throw an exception)
|
|
|
|
|
|
|
|
|
|
virtual bool canBeActivated(const Ptr& ptr) const;
|
|
|
|
|
///< \return Can the player activate this object?
|
|
|
|
|
/// (default implementation: true if object's user-readable name is not empty, false otherwise)
|
|
|
|
|
|
|
|
|
|
virtual std::shared_ptr<Action> activate (const Ptr& ptr, const Ptr& actor) const;
|
|
|
|
|
///< Generate action for activation (default implementation: return a null action).
|
|
|
|
|
|
|
|
|
|