diff options
author | bibo38 <bibo38@users.noreply.github.com> | 2016-10-12 14:38:45 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-10-12 14:38:45 +0200 |
commit | cb640ffea4a51a10db2e379ada8dc0487378ba09 (patch) | |
tree | 780ff243f439c9663b2f88e5df2805cc503f4f1d /src/Entities/Player.h | |
parent | Fixed cProjectileEntity double destroy bug (#3397) (diff) | |
download | cuberite-cb640ffea4a51a10db2e379ada8dc0487378ba09.tar cuberite-cb640ffea4a51a10db2e379ada8dc0487378ba09.tar.gz cuberite-cb640ffea4a51a10db2e379ada8dc0487378ba09.tar.bz2 cuberite-cb640ffea4a51a10db2e379ada8dc0487378ba09.tar.lz cuberite-cb640ffea4a51a10db2e379ada8dc0487378ba09.tar.xz cuberite-cb640ffea4a51a10db2e379ada8dc0487378ba09.tar.zst cuberite-cb640ffea4a51a10db2e379ada8dc0487378ba09.zip |
Diffstat (limited to 'src/Entities/Player.h')
-rw-r--r-- | src/Entities/Player.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h index 25796ee50..04cb5232b 100644 --- a/src/Entities/Player.h +++ b/src/Entities/Player.h @@ -193,6 +193,9 @@ public: /** Returns true if the player is in Spectator mode, either explicitly, or by inheriting from current world */ bool IsGameModeSpectator(void) const; + /** Returns true if the player can be targeted by Mobs */ + bool CanMobsTarget(void) const; + AString GetIP(void) const { return m_IP; } // tolua_export /** Returns the associated team, nullptr if none */ @@ -518,6 +521,7 @@ public: virtual bool IsSprinting(void) const override { return m_IsSprinting; } virtual bool IsRclking (void) const override { return IsEating() || IsChargingBow(); } + virtual void AttachTo(cEntity * a_AttachTo) override; virtual void Detach(void) override; /** Called by cClientHandle when the client is being destroyed. |