diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-01-25 00:58:51 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-01-25 00:58:51 +0100 |
commit | fd7fc7e59efebd6b28012c8e8433f53ac853c555 (patch) | |
tree | fa4379ca71f8bd716be09bf2daad914e8649a277 /src/Entities/Player.h | |
parent | Fixed a generator bug (diff) | |
download | cuberite-fd7fc7e59efebd6b28012c8e8433f53ac853c555.tar cuberite-fd7fc7e59efebd6b28012c8e8433f53ac853c555.tar.gz cuberite-fd7fc7e59efebd6b28012c8e8433f53ac853c555.tar.bz2 cuberite-fd7fc7e59efebd6b28012c8e8433f53ac853c555.tar.lz cuberite-fd7fc7e59efebd6b28012c8e8433f53ac853c555.tar.xz cuberite-fd7fc7e59efebd6b28012c8e8433f53ac853c555.tar.zst cuberite-fd7fc7e59efebd6b28012c8e8433f53ac853c555.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Player.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h index 46d0de69d..449df978f 100644 --- a/src/Entities/Player.h +++ b/src/Entities/Player.h @@ -31,8 +31,6 @@ public: MAX_HEALTH = 20, MAX_FOOD_LEVEL = 20, EATING_TICKS = 30, ///< Number of ticks it takes to eat an item - MAX_AIR_LEVEL = 300, - DROWNING_TICKS = 10, //number of ticks per heart of damage } ; // tolua_end @@ -241,8 +239,6 @@ public: int GetFoodTickTimer (void) const { return m_FoodTickTimer; } double GetFoodExhaustionLevel (void) const { return m_FoodExhaustionLevel; } int GetFoodPoisonedTicksRemaining(void) const { return m_FoodPoisonedTicksRemaining; } - - int GetAirLevel (void) const { return m_AirLevel; } /// Returns true if the player is satiated, i. e. their foodlevel is at the max and they cannot eat anymore bool IsSatiated(void) const { return (m_FoodLevel >= MAX_FOOD_LEVEL); } @@ -353,12 +349,6 @@ public: /// If true the player can fly even when he's not in creative. void SetCanFly(bool a_CanFly); - /// Returns whether the player is swimming or not - virtual bool IsSwimming(void) const{ return m_IsSwimming; } - - /// Return whether the player is under water or not - virtual bool IsSubmerged(void) const{ return m_IsSubmerged; } - /// Returns wheter the player can fly or not. virtual bool CanFly(void) const { return m_CanFly; } // tolua_end @@ -389,12 +379,6 @@ protected: XP_TO_LEVEL30 = 825 } ; - /// Player's air level (for swimming) - int m_AirLevel; - - /// used to time ticks between damage taken via drowning/suffocation - int m_AirTickTimer; - bool m_bVisible; // Food-related variables: @@ -490,12 +474,6 @@ protected: /// Called in each tick if the player is fishing to make sure the floater dissapears when the player doesn't have a fishing rod as equipped item. void HandleFloater(void); - - /// Called in each tick to handle air-related processing i.e. drowning - void HandleAir(); - - /// Called once per tick to set IsSwimming and IsSubmerged - void SetSwimState(cChunk & a_Chunk); /// Adds food exhaustion based on the difference between Pos and LastPos, sprinting status and swimming (in water block) void ApplyFoodExhaustionFromMovement(); |