- Timestamp:
- Mar 6, 2010, 7:44:04 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup3/src/orxonox/interfaces/PickupCarrier.h
r6475 r6477 76 76 @brief Can be called to drop a Pickupable. 77 77 @param pickup A pointer to the Pickupable. 78 @param drop If the Pickupable should just be removed from the PickupCarrier without further action, this can be set to false. true is default. 78 79 @return Returns true if the Pickupable has been dropped, false if not. 79 80 */ 80 bool drop(Pickupable* pickup )81 bool drop(Pickupable* pickup, bool drop = true) 81 82 { 82 83 bool dropped = this->pickups_.erase(pickup) == 1; 83 if(dropped )84 if(dropped && drop) 84 85 { 85 86 pickup->dropped();
Note: See TracChangeset
for help on using the changeset viewer.