summaryrefslogtreecommitdiffstats
path: root/source/Player.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/Player.h8
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);