summaryrefslogtreecommitdiffstats
path: root/source/Entities/Pickup.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-19 11:58:20 +0200
committermadmaxoft <github@xoft.cz>2013-08-19 11:58:20 +0200
commit25e2f721ad2a65d336a83bcaf021d7edb0837125 (patch)
tree8bf8fb6daf741563be804845478269d715417d63 /source/Entities/Pickup.h
parentAdded cPickup:GetAge() the the Lua API. (diff)
downloadcuberite-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/Pickup.h')
-rw-r--r--source/Entities/Pickup.h3
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 ;)