diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-04 16:18:03 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-04 16:18:03 +0200 |
commit | dff77e8e5690b7834652884aadf6c3d5e1ceafd9 (patch) | |
tree | 36e6ae622b45712b521683666c13661544c28733 /source/Player.h | |
parent | ProtoProxy: Added PACKET_SPAWN_NAMED_ENTITY and PACKET_PLAYER_ANIMATION parsing (diff) | |
download | cuberite-dff77e8e5690b7834652884aadf6c3d5e1ceafd9.tar cuberite-dff77e8e5690b7834652884aadf6c3d5e1ceafd9.tar.gz cuberite-dff77e8e5690b7834652884aadf6c3d5e1ceafd9.tar.bz2 cuberite-dff77e8e5690b7834652884aadf6c3d5e1ceafd9.tar.lz cuberite-dff77e8e5690b7834652884aadf6c3d5e1ceafd9.tar.xz cuberite-dff77e8e5690b7834652884aadf6c3d5e1ceafd9.tar.zst cuberite-dff77e8e5690b7834652884aadf6c3d5e1ceafd9.zip |
Diffstat (limited to 'source/Player.h')
-rw-r--r-- | source/Player.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/Player.h b/source/Player.h index c582c1802..f2eb2320d 100644 --- a/source/Player.h +++ b/source/Player.h @@ -170,6 +170,12 @@ public: /// Returns the list of slots currently stored for inventory painting. To be used by cWindow only const cSlotNums & GetInventoryPaintSlots(void) const; + + /// Sets the crouch status, broadcasts to all visible players + void SetCrouch(bool a_IsCrouched); + + // cEntity overrides: + virtual bool IsCrouched(void) const { return m_IsCrouched; } protected: typedef std::map< std::string, bool > PermissionMap; @@ -219,6 +225,8 @@ protected: cClientHandle * m_ClientHandle; cSlotNums m_InventoryPaintSlots; + + bool m_IsCrouched; virtual void Destroyed(void); |