- Timestamp:
- Mar 5, 2010, 6:26:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup3/src/orxonox/interfaces/Pickupable.cc
r6474 r6475 36 36 #include "core/Identifier.h" 37 37 #include "core/CoreIncludes.h" 38 #include "pickup/PickupIdentifier.h" 38 39 #include "PickupCarrier.h" 39 40 … … 52 53 this->pickedUp_ = false; 53 54 this->carrier_ = NULL; 55 56 this->pickupIdentifier_ = new PickupIdentifier(); 54 57 } 55 58 … … 91 94 Returns true if the given PickupCarrier is a target. 92 95 */ 93 bool Pickupable::isTarget( PickupCarrier* carrier)96 bool Pickupable::isTarget(const PickupCarrier* carrier) const 94 97 { 95 98 Identifier* identifier = carrier->getIdentifier(); … … 156 159 this->setUsed(false); 157 160 this->setPickedUp(false); 161 162 bool created = this->createSpawner(this->getCarrier()->getCarrierPosition()); 163 158 164 this->setCarrier(NULL); 165 if(!created) 166 this->destroy(); 167 159 168 return true; 160 169 }
Note: See TracChangeset
for help on using the changeset viewer.