modified action interface to allow other actors besides the player

pull/7/head
Marc Zinnschlag 15 years ago
parent c38b02bd5c
commit 7e5ddae3b3

@ -29,7 +29,7 @@ namespace MWWorld
throw std::runtime_error ("class does not have item health");
}
boost::shared_ptr<Action> Class::activate (const Ptr& ptr) const
boost::shared_ptr<Action> Class::activate (const Ptr& ptr, const Ptr& actor) const
{
return boost::shared_ptr<Action> (new NullAction);
}

@ -49,7 +49,7 @@ namespace MWWorld
///< Return item max health or throw an exception, if class does not have item health
/// (default implementation: throw an exceoption)
virtual boost::shared_ptr<Action> activate (const Ptr& ptr) const;
virtual boost::shared_ptr<Action> activate (const Ptr& ptr, const Ptr& actor) const;
///< Generate action for activation (default implementation: return a null action).
virtual boost::shared_ptr<Action> use (const Ptr& ptr) const;

Loading…
Cancel
Save