diff options
author | Daniel O'Brien <marmot.daniel@gmail.com> | 2013-11-16 11:38:57 +0100 |
---|---|---|
committer | Daniel O'Brien <marmot.daniel@gmail.com> | 2013-11-16 11:38:57 +0100 |
commit | 359539293782713d47e51775b65ee91fc89994e4 (patch) | |
tree | 7e6fd07f9e20b6568b3e461dbd55bc7542b07358 /source/Entities/Player.h | |
parent | fix possible threadlock issue, changed function names to be closer to standard (diff) | |
download | cuberite-359539293782713d47e51775b65ee91fc89994e4.tar cuberite-359539293782713d47e51775b65ee91fc89994e4.tar.gz cuberite-359539293782713d47e51775b65ee91fc89994e4.tar.bz2 cuberite-359539293782713d47e51775b65ee91fc89994e4.tar.lz cuberite-359539293782713d47e51775b65ee91fc89994e4.tar.xz cuberite-359539293782713d47e51775b65ee91fc89994e4.tar.zst cuberite-359539293782713d47e51775b65ee91fc89994e4.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Entities/Player.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/Entities/Player.h b/source/Entities/Player.h index 2fc0d5ac9..01a864149 100644 --- a/source/Entities/Player.h +++ b/source/Entities/Player.h @@ -32,6 +32,7 @@ public: 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 + MIN_EXPERIENCE = 0, } ; // tolua_end @@ -78,6 +79,9 @@ public: */ short AddExperience(short a_Xp_delta); + /// "Spend" some experience - ie on enchanting, returns new currentXp + short SpendExperience(short a_Xp_delta); + /// Gets the experience total - XpTotal for score on death inline short GetXpLifetimeTotal(void) { return m_LifetimeTotalXp; } |