From 0e8b10a2d72358e3a8a166ef47640ce77442adba Mon Sep 17 00:00:00 2001 From: auria Date: Mon, 29 Dec 2008 21:20:05 +0000 Subject: [PATCH] cleaned up code documentation to be clearer git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2812 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/items/item.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/items/item.hpp b/src/items/item.hpp index 0a6a0d12f..39c51deb1 100644 --- a/src/items/item.hpp +++ b/src/items/item.hpp @@ -56,8 +56,12 @@ private: bool m_rotate; // set to false if item should not rotate - Kart* m_parent; // optional, if item was placed by a kart, a timer - float m_deactive_time; // can be used so it's not hit by its own item + /** optionally, set this if this item was laid by a particular kart. in this case, + the 'm_deactive_time' will also be set - see below. */ + Kart* m_parent; + /** optionally, if item was placed by a kart, a timer can be used to temporarly + deactivate collision so a kart is not hit by its own item */ + float m_deactive_time; public: Item (ItemType type, const Vec3& xyz, const Vec3& normal,