diff options
author | Lukas Pioch <lukas@zgow.de> | 2017-05-09 14:24:41 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2017-05-09 14:24:41 +0200 |
commit | 7c4576a02591d8ebe41656c5cefb1eb25a086a10 (patch) | |
tree | 3c5bb3dd56d492f32306a65c790576670dc3c0b2 /src/Entities/ExpOrb.h | |
parent | Fixed Lua bindings for const objects. (diff) | |
download | cuberite-7c4576a02591d8ebe41656c5cefb1eb25a086a10.tar cuberite-7c4576a02591d8ebe41656c5cefb1eb25a086a10.tar.gz cuberite-7c4576a02591d8ebe41656c5cefb1eb25a086a10.tar.bz2 cuberite-7c4576a02591d8ebe41656c5cefb1eb25a086a10.tar.lz cuberite-7c4576a02591d8ebe41656c5cefb1eb25a086a10.tar.xz cuberite-7c4576a02591d8ebe41656c5cefb1eb25a086a10.tar.zst cuberite-7c4576a02591d8ebe41656c5cefb1eb25a086a10.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/ExpOrb.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/Entities/ExpOrb.h b/src/Entities/ExpOrb.h index bb4c79c8e..83672ea02 100644 --- a/src/Entities/ExpOrb.h +++ b/src/Entities/ExpOrb.h @@ -25,17 +25,21 @@ public: virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override; virtual void SpawnOn(cClientHandle & a_Client) override; + // tolua_begin + /** Returns the number of ticks that this entity has existed */ - int GetAge(void) const { return std::chrono::duration_cast<cTickTime>(m_Timer).count(); } // tolua_export + int GetAge(void) const { return std::chrono::duration_cast<cTickTime>(m_Timer).count(); } /** Set the number of ticks that this entity has existed */ - void SetAge(int a_Age) { m_Timer = cTickTime(a_Age); } // tolua_export + void SetAge(int a_Age) { m_Timer = cTickTime(a_Age); } /** Get the exp amount */ - int GetReward(void) const { return m_Reward; } // tolua_export + int GetReward(void) const { return m_Reward; } /** Set the exp amount */ - void SetReward(int a_Reward) { m_Reward = a_Reward; } // tolua_export + void SetReward(int a_Reward) { m_Reward = a_Reward; } + + // tolua_end protected: int m_Reward; |