@ -39,6 +39,11 @@ namespace MWWorld
return false;
}
void Class::skillUsageSucceeded (const MWWorld::Ptr& ptr, int skill, int usageType) const
{
throw std::runtime_error ("class does not represent an actor");
MWMechanics::CreatureStats& Class::getCreatureStats (const Ptr& ptr) const
throw std::runtime_error ("class does not have creature stats");
@ -173,6 +173,11 @@ namespace MWWorld
///
/// (default implementation: ignore and return false)
virtual void skillUsageSucceeded (const MWWorld::Ptr& ptr, int skill, int usageType) const;
///< Inform actor \a ptr that a skill use has succeeded.
/// (default implementations: throws an exception)
static const Class& get (const std::string& key);
///< If there is no class for this \a key, an exception is thrown.