summaryrefslogtreecommitdiffstats
path: root/source/Entities
diff options
context:
space:
mode:
Diffstat (limited to 'source/Entities')
-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 ;)