diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-01-22 20:52:49 +0100 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-01-22 20:52:49 +0100 |
commit | 7ba432b338ffa4c448de9d68d0f1b1e0024cd50a (patch) | |
tree | 706035da78a49c971f6d3bf3d812582581ce93a4 /src/Entities/Player.h | |
parent | Merge pull request #2894 from LogicParrot/spider (diff) | |
parent | Improved tamed wolf pack cooperation and projectile reactions (diff) | |
download | cuberite-7ba432b338ffa4c448de9d68d0f1b1e0024cd50a.tar cuberite-7ba432b338ffa4c448de9d68d0f1b1e0024cd50a.tar.gz cuberite-7ba432b338ffa4c448de9d68d0f1b1e0024cd50a.tar.bz2 cuberite-7ba432b338ffa4c448de9d68d0f1b1e0024cd50a.tar.lz cuberite-7ba432b338ffa4c448de9d68d0f1b1e0024cd50a.tar.xz cuberite-7ba432b338ffa4c448de9d68d0f1b1e0024cd50a.tar.zst cuberite-7ba432b338ffa4c448de9d68d0f1b1e0024cd50a.zip |
Diffstat (limited to 'src/Entities/Player.h')
-rw-r--r-- | src/Entities/Player.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h index fbb09b815..efd515b23 100644 --- a/src/Entities/Player.h +++ b/src/Entities/Player.h @@ -499,8 +499,11 @@ public: Assumes that all the blocks are in currently loaded chunks. */ bool PlaceBlocks(const sSetBlockVector & a_Blocks); - /** Notify friendly wolves that we took damage or did damage to an entity so that they might assist us. */ - void NotifyFriendlyWolves(cPawn * a_Opponent); + /** Notify nearby wolves that the player or one of the player's wolves took damage or did damage to an entity + @param a_Opponent the opponent we're fighting. + @param a_IsPlayerInvolved Should be true if the player took or did damage, and false if one of the player's wolves took or did damage. + */ + void NotifyNearbyWolves(cPawn * a_Opponent, bool a_IsPlayerInvolved); // cEntity overrides: virtual bool IsCrouched (void) const override { return m_IsCrouched; } |