diff options
author | madmaxoft <github@xoft.cz> | 2013-08-30 14:24:03 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-30 14:24:03 +0200 |
commit | 17ad4c2610f2c33d5b4a8b42b7d4b8fbda9ade32 (patch) | |
tree | feaaf5bf652bfdc542dee9b9c452391531aee6ba /source/Entities/Player.h | |
parent | Implemented basic physics for projectiles. (diff) | |
download | cuberite-17ad4c2610f2c33d5b4a8b42b7d4b8fbda9ade32.tar cuberite-17ad4c2610f2c33d5b4a8b42b7d4b8fbda9ade32.tar.gz cuberite-17ad4c2610f2c33d5b4a8b42b7d4b8fbda9ade32.tar.bz2 cuberite-17ad4c2610f2c33d5b4a8b42b7d4b8fbda9ade32.tar.lz cuberite-17ad4c2610f2c33d5b4a8b42b7d4b8fbda9ade32.tar.xz cuberite-17ad4c2610f2c33d5b4a8b42b7d4b8fbda9ade32.tar.zst cuberite-17ad4c2610f2c33d5b4a8b42b7d4b8fbda9ade32.zip |
Diffstat (limited to 'source/Entities/Player.h')
-rw-r--r-- | source/Entities/Player.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source/Entities/Player.h b/source/Entities/Player.h index 5dcce8421..4adf946db 100644 --- a/source/Entities/Player.h +++ b/source/Entities/Player.h @@ -62,6 +62,18 @@ public: /// Returns the currently equipped boots; empty item if none virtual cItem GetEquippedBoots(void) const override { return m_Inventory.GetEquippedBoots(); } + + /// Starts charging the equipped bow + void StartChargingBow(void); + + /// Finishes charging the current bow. Returns the number of ticks for which the bow has been charged + int FinishChargingBow(void); + + /// Cancels the current bow charging + void CancelChargingBow(void); + + /// Returns true if the player is currently charging the bow + bool IsChargingBox(void) const { return m_IsChargingBow; } void SetTouchGround( bool a_bTouchGround ); inline void SetStance( const double a_Stance ) { m_Stance = a_Stance; } @@ -351,6 +363,9 @@ protected: /// The world tick in which eating will be finished. -1 if not eating Int64 m_EatingFinishTick; + + bool m_IsChargingBow; + int m_BowCharge; virtual void Destroyed(void); |