Changeset 6480 for code/branches/pickup3/src/modules/pickup
- Timestamp:
- Mar 7, 2010, 2:05:05 PM (15 years ago)
- Location:
- code/branches/pickup3/src/modules/pickup
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup3/src/modules/pickup/Pickup.cc
r6477 r6480 72 72 */ 73 73 void Pickup::initializeIdentifier(void) 74 { 75 //TODO: Check whether this could not be done in the Constructor if Pickupable. Would be much more convenient. 76 this->pickupIdentifier_->addClass(this->getIdentifier()); 77 74 { 78 75 //TODO: Works? 79 76 std::string val1 = this->getActivationType(); -
code/branches/pickup3/src/modules/pickup/PickupCollection.cc
r6475 r6480 53 53 RegisterObject(PickupCollection); 54 54 55 this->pickupCollectionIdentifier_ = new PickupCollectionIdentifier( );55 this->pickupCollectionIdentifier_ = new PickupCollectionIdentifier(this); 56 56 } 57 57 … … 85 85 void PickupCollection::initializeIdentifier(void) 86 86 { 87 this->pickupCollectionIdentifier_->addClass(this->getIdentifier());88 89 87 for(std::vector<Pickupable*>::iterator it = this->pickups_.begin(); it != this->pickups_.end(); it++) 90 88 { -
code/branches/pickup3/src/modules/pickup/PickupCollectionIdentifier.cc
r6475 r6480 34 34 { 35 35 36 PickupCollectionIdentifier::PickupCollectionIdentifier( void)36 PickupCollectionIdentifier::PickupCollectionIdentifier(Pickupable* pickup) : PickupIdentifier(pickup) 37 37 { 38 38 RegisterObject(PickupCollectionIdentifier); -
code/branches/pickup3/src/modules/pickup/PickupCollectionIdentifier.h
r6475 r6480 42 42 43 43 public: 44 PickupCollectionIdentifier( void);44 PickupCollectionIdentifier(Pickupable* pickup); 45 45 ~PickupCollectionIdentifier(); 46 46 -
code/branches/pickup3/src/modules/pickup/items/HealthPickup.cc
r6478 r6480 88 88 void HealthPickup::initializeIdentifier(void) 89 89 { 90 this->pickupIdentifier_->addClass(this->getIdentifier());91 92 90 std::stringstream stream; 93 91 stream << this->getHealth();
Note: See TracChangeset
for help on using the changeset viewer.