mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-18 13:12:50 +00:00
Issue #314: added skillUsageSucceeded function to Class
This commit is contained in:
parent
7a2d613043
commit
805b81bf6e
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user