Changeset 6516 for code/branches
- Timestamp:
- Mar 11, 2010, 10:59:37 PM (15 years ago)
- Location:
- code/branches/pickup3/src/modules/pickup
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup3/src/modules/pickup/DroppedPickup.cc
r6512 r6516 51 51 RegisterObject(DroppedPickup); 52 52 53 this->initialize();54 53 } 55 54 … … 69 68 { 70 69 RegisterObject(DroppedPickup); 71 72 this->initialize(); 73 70 74 71 this->setPosition(position); 75 72 this->setActive(false); … … 83 80 DroppedPickup::~DroppedPickup() 84 81 { 85 if(this-> gotPickedUp_ && this->pickup_ != NULL)82 if(this->pickup_ != NULL && this->pickup_->isPickedUp()) 86 83 { 87 84 this->pickup_ = NULL; 88 85 } 89 }90 91 /**92 @brief93 Initializes the member variables of the object.94 */95 void DroppedPickup::initialize(void)96 {97 this->gotPickedUp_ = false;98 86 } 99 87 -
code/branches/pickup3/src/modules/pickup/DroppedPickup.h
r6496 r6516 58 58 protected: 59 59 virtual Pickupable* getPickup(void); //!< Creates the Pickupable that is going to get picked up. 60 61 private:62 void initialize(void); //!< Initializes the member variables of the object.63 64 bool gotPickedUp_; //!< Whether the pickup got picked up or not.65 60 66 61 }; -
code/branches/pickup3/src/modules/pickup/PickupRepresentation.cc
r6512 r6516 44 44 This is primarily for use of the PickupManager in creating a default PickupRepresentation. 45 45 */ 46 //TODO: Not this as creator!!! 46 47 PickupRepresentation::PickupRepresentation() : BaseObject(this) 47 48 {
Note: See TracChangeset
for help on using the changeset viewer.