diff options
author | Mattes D <github@xoft.cz> | 2013-12-19 22:51:21 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2013-12-19 22:51:21 +0100 |
commit | 03ec64aee153a4c217f0794e9310d80eda7629e6 (patch) | |
tree | cb5f0e532d5bcfc25324207f0c088507f6b6c6bc /src/Entities/Player.h | |
parent | Merge pull request #448 from mc-server/testbranch (diff) | |
parent | Fixed #include in Floater.cpp. (diff) | |
download | cuberite-03ec64aee153a4c217f0794e9310d80eda7629e6.tar cuberite-03ec64aee153a4c217f0794e9310d80eda7629e6.tar.gz cuberite-03ec64aee153a4c217f0794e9310d80eda7629e6.tar.bz2 cuberite-03ec64aee153a4c217f0794e9310d80eda7629e6.tar.lz cuberite-03ec64aee153a4c217f0794e9310d80eda7629e6.tar.xz cuberite-03ec64aee153a4c217f0794e9310d80eda7629e6.tar.zst cuberite-03ec64aee153a4c217f0794e9310d80eda7629e6.zip |
Diffstat (limited to 'src/Entities/Player.h')
-rw-r--r-- | src/Entities/Player.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h index 59e941040..74da857e8 100644 --- a/src/Entities/Player.h +++ b/src/Entities/Player.h @@ -253,6 +253,14 @@ public: /// Returns true if the player is currently flying. bool IsFlying(void) const { return m_IsFlying; } + + /// returns true if the player has thrown out a floater. + bool IsFishing(void) const { return m_IsFishing; } + + void SetIsFishing(bool a_IsFishing, int a_FloaterID = -1) { m_IsFishing = a_IsFishing; m_FloaterID = a_FloaterID; } + + int GetFloaterID(void) const { return m_FloaterID; } + // tolua_end /// Starts eating the currently equipped item. Resets the eating timer and sends the proper animation packet @@ -429,6 +437,7 @@ protected: bool m_IsFlying; bool m_IsSwimming; bool m_IsSubmerged; + bool m_IsFishing; bool m_CanFly; // If this is true the player can fly. Even if he is not in creative. @@ -445,6 +454,7 @@ protected: bool m_IsChargingBow; int m_BowCharge; + int m_FloaterID; virtual void Destroyed(void); |