- Timestamp:
- Jul 18, 2012, 10:36:24 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/modules/pickup/PickupCollection.cc
r9296 r9318 39 39 #include "CollectiblePickup.h" 40 40 #include "DroppedPickup.h" 41 #include "PickupCollectionIdentifier.h"42 41 43 42 #include "PickupCollection.h" … … 54 53 The creator of the object. 55 54 */ 56 PickupCollection::PickupCollection(BaseObject* creator) : BaseObject(creator) , pickupCollectionIdentifier_(NULL)55 PickupCollection::PickupCollection(BaseObject* creator) : BaseObject(creator) 57 56 { 58 57 RegisterObject(PickupCollection); 59 58 60 this->pickupCollectionIdentifier_ = new PickupCollectionIdentifier(this);61 59 this->processingUsed_ = false; 62 60 this->processingPickedUp_ = false; … … 76 74 } 77 75 this->pickups_.clear(); 78 79 if(this->pickupCollectionIdentifier_ != NULL)80 this->pickupCollectionIdentifier_->destroy();81 76 } 82 77 … … 89 84 SUPER(PickupCollection, XMLPort, xmlelement, mode); 90 85 86 XMLPortParam(PickupCollection, "representation", setRepresentationName, getRepresentationName, xmlelement, mode); 91 87 XMLPortObject(PickupCollection, CollectiblePickup, "pickupables", addPickupable, getPickupable, xmlelement, mode); 92 88 } … … 217 213 218 214 PickupCollection* pickup = orxonox_cast<PickupCollection*>(item); 215 pickup->setRepresentationName(this->getRepresentationName()); 219 216 // Clone all Pickupables this PickupCollection consist of. 220 217 for(std::list<CollectiblePickup*>::iterator it = this->pickups_.begin(); it != this->pickups_.end(); ++it) … … 243 240 244 241 return true; 245 }246 247 /**248 @brief249 Get the PickupIdentifier of this PickupCollection.250 This is in fact the PickupCollectionIdentifier.251 @return252 Returns a pointer to the PickupIdentifier of this PickupCollection.253 */254 const PickupIdentifier* PickupCollection::getPickupIdentifier(void) const255 {256 return this->pickupCollectionIdentifier_;257 242 } 258 243
Note: See TracChangeset
for help on using the changeset viewer.