summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-08-12 11:10:32 +0200
committermadmaxoft <github@xoft.cz>2014-08-12 11:10:32 +0200
commit3020e8cc05a0732ee880ab16bbab66e4e9b72dd7 (patch)
treeb373615f2008cee45301ac1756d18396c161ae05 /src/Entities/Player.h
parentFixed unchecked return values. (diff)
parentMerge pull request #1316 from ChriPiv/master (diff)
downloadcuberite-3020e8cc05a0732ee880ab16bbab66e4e9b72dd7.tar
cuberite-3020e8cc05a0732ee880ab16bbab66e4e9b72dd7.tar.gz
cuberite-3020e8cc05a0732ee880ab16bbab66e4e9b72dd7.tar.bz2
cuberite-3020e8cc05a0732ee880ab16bbab66e4e9b72dd7.tar.lz
cuberite-3020e8cc05a0732ee880ab16bbab66e4e9b72dd7.tar.xz
cuberite-3020e8cc05a0732ee880ab16bbab66e4e9b72dd7.tar.zst
cuberite-3020e8cc05a0732ee880ab16bbab66e4e9b72dd7.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)