diff options
author | madmaxoft <github@xoft.cz> | 2013-08-19 11:58:20 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-19 11:58:20 +0200 |
commit | 25e2f721ad2a65d336a83bcaf021d7edb0837125 (patch) | |
tree | 8bf8fb6daf741563be804845478269d715417d63 /source/Entities | |
parent | Added cPickup:GetAge() the the Lua API. (diff) | |
download | cuberite-25e2f721ad2a65d336a83bcaf021d7edb0837125.tar cuberite-25e2f721ad2a65d336a83bcaf021d7edb0837125.tar.gz cuberite-25e2f721ad2a65d336a83bcaf021d7edb0837125.tar.bz2 cuberite-25e2f721ad2a65d336a83bcaf021d7edb0837125.tar.lz cuberite-25e2f721ad2a65d336a83bcaf021d7edb0837125.tar.xz cuberite-25e2f721ad2a65d336a83bcaf021d7edb0837125.tar.zst cuberite-25e2f721ad2a65d336a83bcaf021d7edb0837125.zip |
Diffstat (limited to 'source/Entities')
-rw-r--r-- | source/Entities/Pickup.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/Entities/Pickup.h b/source/Entities/Pickup.h index 90292dcb8..b0323dd92 100644 --- a/source/Entities/Pickup.h +++ b/source/Entities/Pickup.h @@ -40,6 +40,9 @@ public: /// Returns the number of ticks that this entity has existed int GetAge(void) const { return (int)(m_Timer / 50); } // tolua_export + /// Returns true if the pickup has already been collected + bool IsCollected(void) const { return m_bCollected; } // tolua_export + private: Vector3d m_ResultingSpeed; //Can be used to modify the resulting speed for the current tick ;) |