summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-08-11 08:28:31 +0200
committerMattes D <github@xoft.cz>2014-08-11 08:28:31 +0200
commit06cc5c22eff96fa47228bb8f2416ab2535abcf60 (patch)
tree0ec1f380753b062ed17af28b2e5911975869d7f1 /src/Entities/Player.h
parentMerge pull request #1311 from mc-server/CMakeFix (diff)
parentFixed tolua error with static initialization (diff)
downloadcuberite-06cc5c22eff96fa47228bb8f2416ab2535abcf60.tar
cuberite-06cc5c22eff96fa47228bb8f2416ab2535abcf60.tar.gz
cuberite-06cc5c22eff96fa47228bb8f2416ab2535abcf60.tar.bz2
cuberite-06cc5c22eff96fa47228bb8f2416ab2535abcf60.tar.lz
cuberite-06cc5c22eff96fa47228bb8f2416ab2535abcf60.tar.xz
cuberite-06cc5c22eff96fa47228bb8f2416ab2535abcf60.tar.zst
cuberite-06cc5c22eff96fa47228bb8f2416ab2535abcf60.zip
Diffstat (limited to 'src/Entities/Player.h')
-rw-r--r--src/Entities/Player.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h
index e26808bfc..d3ed1ef9d 100644
--- a/src/Entities/Player.h
+++ b/src/Entities/Player.h
@@ -29,12 +29,13 @@ class cPlayer :
typedef cPawn super;
public:
- enum
- {
- MAX_HEALTH = 20,
- MAX_FOOD_LEVEL = 20,
- EATING_TICKS = 30, ///< Number of ticks it takes to eat an item
- } ;
+ static const int MAX_HEALTH;
+
+ static const int MAX_FOOD_LEVEL;
+
+ /** Number of ticks it takes to eat an item */
+ static const int EATING_TICKS;
+
// tolua_end
CLASS_PROTODEF(cPlayer)