mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
Add comment
This commit is contained in:
parent
6889432030
commit
4b0a6074e7
@ -132,6 +132,10 @@ namespace MWMechanics
|
|||||||
/// @note No-op for non-player attackers
|
/// @note No-op for non-player attackers
|
||||||
virtual void actorKilled (const MWWorld::Ptr& victim, const MWWorld::Ptr& attacker);
|
virtual void actorKilled (const MWWorld::Ptr& victim, const MWWorld::Ptr& attacker);
|
||||||
|
|
||||||
|
/// Checks if commiting a crime is currently valid
|
||||||
|
/// @param victim The actor being attacked
|
||||||
|
/// @param attacker The actor commiting the crime
|
||||||
|
/// @return true if the victim is a valid target for crime
|
||||||
virtual bool canCommitCrimeAgainst(const MWWorld::Ptr& victim, const MWWorld::Ptr& attacker);
|
virtual bool canCommitCrimeAgainst(const MWWorld::Ptr& victim, const MWWorld::Ptr& attacker);
|
||||||
|
|
||||||
/// Utility to check if taking this item is illegal and calling commitCrime if so
|
/// Utility to check if taking this item is illegal and calling commitCrime if so
|
||||||
|
Loading…
x
Reference in New Issue
Block a user