From 25e2f721ad2a65d336a83bcaf021d7edb0837125 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Mon, 19 Aug 2013 11:58:20 +0200 Subject: Added cPickup:IsCollected() to the Lua API. --- source/Entities/Pickup.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/Entities/Pickup.h') 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 ;) -- cgit v1.2.3