Changeset 6901 for code/trunk/src
- Timestamp:
- May 15, 2010, 8:47:07 AM (15 years ago)
- Location:
- code/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/pickup/PickupCollection.cc
r6731 r6901 123 123 for(std::vector<WeakPtr<Pickupable> >::iterator it = this->pickups_.begin(); it != this->pickups_.end(); it++) 124 124 { 125 (*it).get()->setCarrier(this->getCarrier() );125 (*it).get()->setCarrier(this->getCarrier()->getTarget(*it)); 126 126 } 127 127 } -
code/trunk/src/orxonox/interfaces/Pickupable.cc
r6731 r6901 102 102 Returns true if the given PickupCarrier is a target. 103 103 */ 104 bool Pickupable::isTarget( constPickupCarrier* carrier) const104 bool Pickupable::isTarget(PickupCarrier* carrier) const 105 105 { 106 106 if(carrier == NULL) -
code/trunk/src/orxonox/interfaces/Pickupable.h
r6731 r6901 98 98 bool dropped(void); //!< Sets the Pickupable to not picked up or dropped. 99 99 100 virtual bool isTarget( constPickupCarrier* carrier) const; //!< Get whether the given PickupCarrier is a target of this pickup.100 virtual bool isTarget(PickupCarrier* carrier) const; //!< Get whether the given PickupCarrier is a target of this pickup. 101 101 bool isTarget(const Identifier* identifier) const; //!< Get whether a given class, represented by the input Identifier, is a target of this Pickupable. 102 102 bool addTarget(PickupCarrier* target); //!< Add a PickupCarrier as target of this pickup.
Note: See TracChangeset
for help on using the changeset viewer.