Changeset 5902 for code/branches/pickup/src/orxonox/pickup/DroppedItem.h
- Timestamp:
- Oct 7, 2009, 2:20:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup/src/orxonox/pickup/DroppedItem.h
r5781 r5902 49 49 virtual ~DroppedItem(); 50 50 51 //TODO: Comment. 52 //DroppedItem -> Item with no owner, alone in space? 53 //Would be much nicer if it would be triggered by a standard issue DistanceTrigger. 54 //Where is this created? I see no XMLPort. 55 //Where is the item for this created? What happens if more than one pawn triggers this? 56 //Add more than just one items, or even better create the ability to add a Collection.? Rename to ...? 57 51 58 void tick(float dt); 52 59 void trigger(Pawn* pawn); … … 55 62 static DroppedItem* createDefaultDrop(BaseItem* item, Pawn* pawn, const ColourValue& flareColour = ColourValue(0.5f, 1.0f, 0.3f), float timeToLive = 0); 56 63 57 void createTimer(); 58 void timerCallback(); 64 void createTimer(); //TODO: Can this be made private, too? 65 void timerCallback(); //TODO: This should really be private. 59 66 60 67 inline float getTriggerDistance() const … … 65 72 inline BaseItem* getItem() const 66 73 { return this->item_; } 74 //TODO: Needs to be public? 67 75 inline void setItem(BaseItem* item) 68 76 { this->item_ = item; } … … 70 78 inline float getTimeToLive() const 71 79 { return this->timeToLive_; } 80 //TODO: Needs to be public? 72 81 inline void setTimeToLive(float time) 73 82 { this->timeToLive_ = time; }
Note: See TracChangeset
for help on using the changeset viewer.