- Timestamp:
- Jul 18, 2012, 10:36:24 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/modules/pickup/items/HealthPickup.cc
r9312 r9318 38 38 #include "core/XMLPort.h" 39 39 40 #include "pickup/PickupIdentifier.h"41 40 #include "worldentities/pawns/Pawn.h" 42 41 … … 87 86 /** 88 87 @brief 89 Initializes the PickupIdentifier of this pickup.90 */91 void HealthPickup::initializeIdentifier(void)92 {93 this->pickupIdentifier_->addParameter("health", this->getHealth());94 this->pickupIdentifier_->addParameter("healthType", this->getHealthType());95 this->pickupIdentifier_->addParameter("healthRate", this->getHealthRate());96 }97 98 /**99 @brief100 88 Method for creating a HealthPickup object through XML. 101 89 */ … … 110 98 if(!this->isContinuous()) 111 99 this->setHealthRate(0.0f); // TODO: this logic should be inside tick(), not in XMLPort 112 113 this->initializeIdentifier();114 100 } 115 101 … … 277 263 pickup->setHealthRate(this->getHealthRate()); 278 264 pickup->setHealthType(this->getHealthType()); 279 280 pickup->initializeIdentifier();281 265 } 282 266
Note: See TracChangeset
for help on using the changeset viewer.