- 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/ShieldPickup.cc
r9305 r9318 38 38 #include "core/XMLPort.h" 39 39 40 #include "pickup/PickupIdentifier.h"41 40 #include "worldentities/pawns/Pawn.h" 42 41 … … 80 79 /** 81 80 @brief 82 Initializes the PickupIdentifier of this pickup.83 */84 void ShieldPickup::initializeIdentifier(void)85 {86 this->pickupIdentifier_->addParameter("duration", this->getDuration());87 this->pickupIdentifier_->addParameter("ShieldHealth", this->getShieldHealth());88 this->pickupIdentifier_->addParameter("ShieldAbsorption", this->getShieldAbsorption());89 }90 91 /**92 @brief93 81 Method for creating a ShieldPickup object through XML. 94 82 */ … … 100 88 XMLPortParam(ShieldPickup, "shieldabsorption", setShieldAbsorption, getShieldAbsorption, xmlelement, mode); 101 89 XMLPortParam(ShieldPickup, "duration", setDuration, getDuration, xmlelement, mode); 102 103 this->initializeIdentifier();104 90 } 105 91 … … 188 174 pickup->setShieldAbsorption(this->getShieldAbsorption()); 189 175 pickup->setShieldHealth(this->getShieldHealth()); 190 pickup->initializeIdentifier();191 176 } 192 177
Note: See TracChangeset
for help on using the changeset viewer.