Changeset 7547 for code/trunk/src/orxonox/interfaces/Pickupable.cc
- Timestamp:
- Oct 16, 2010, 12:37:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/interfaces/Pickupable.cc
r7504 r7547 147 147 Returns true if the given PickupCarrier is a target. 148 148 */ 149 bool Pickupable::isTarget( PickupCarrier* carrier) const149 bool Pickupable::isTarget(const PickupCarrier* carrier) const 150 150 { 151 151 if(carrier == NULL) … … 165 165 bool Pickupable::isTarget(const Identifier* identifier) const 166 166 { 167 // !Iterate through all targets of this Pickupable.167 // Iterate through all targets of this Pickupable. 168 168 for(std::list<Identifier*>::const_iterator it = this->targets_.begin(); it != this->targets_.end(); it++) 169 169 { … … 198 198 bool Pickupable::addTarget(Identifier* target) 199 199 { 200 if(this->isTarget(target)) // !<If the input target is already present in the list of targets.200 if(this->isTarget(target)) // If the input target is already present in the list of targets. 201 201 return false; 202 202 … … 216 216 bool Pickupable::pickup(PickupCarrier* carrier) 217 217 { 218 if(carrier == NULL || this->isPickedUp()) // !<If carrier is NULL or the Pickupable is already picked up.218 if(carrier == NULL || this->isPickedUp()) // If carrier is NULL or the Pickupable is already picked up. 219 219 return false; 220 220
Note: See TracChangeset
for help on using the changeset viewer.