mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-02 07:45:35 +00:00
Issue #314: extended Class::apply function to cover the actor
This commit is contained in:
parent
ec9ebe6b58
commit
7a2d613043
2 changed files with 4 additions and 2 deletions
|
@ -34,7 +34,7 @@ namespace MWWorld
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Class::apply (const MWWorld::Ptr& ptr, const std::string& id) const
|
bool Class::apply (const MWWorld::Ptr& ptr, const std::string& id, const MWWorld::Ptr& actor) const
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -165,8 +165,10 @@ namespace MWWorld
|
||||||
/// effects). Throws an exception, if the object can't hold other objects.
|
/// effects). Throws an exception, if the object can't hold other objects.
|
||||||
/// (default implementation: throws an exception)
|
/// (default implementation: throws an exception)
|
||||||
|
|
||||||
virtual bool apply (const MWWorld::Ptr& ptr, const std::string& id) const;
|
virtual bool apply (const MWWorld::Ptr& ptr, const std::string& id,
|
||||||
|
const MWWorld::Ptr& actor) const;
|
||||||
///< Apply \a id on \a ptr.
|
///< Apply \a id on \a ptr.
|
||||||
|
/// \param actor Actor that is resposible for the ID being applied to \a ptr.
|
||||||
/// \return Any effect?
|
/// \return Any effect?
|
||||||
///
|
///
|
||||||
/// (default implementation: ignore and return false)
|
/// (default implementation: ignore and return false)
|
||||||
|
|
Loading…
Reference in a new issue