- Timestamp:
- Jul 18, 2012, 10:36:24 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/modules/pickup/items/InvisiblePickup.cc
r9305 r9318 40 40 #include "core/XMLPort.h" 41 41 42 #include "pickup/PickupIdentifier.h"43 42 #include "worldentities/pawns/Pawn.h" 44 43 … … 79 78 /** 80 79 @brief 81 Initializes the PickupIdentifier of this pickup.82 */83 void InvisiblePickup::initializeIdentifier(void)84 {85 this->pickupIdentifier_->addParameter("duration", this->getDuration());86 }87 88 /**89 @brief90 80 Method for creating a HealthPickup object through XML. 91 81 */ … … 94 84 SUPER(InvisiblePickup, XMLPort, xmlelement, mode); 95 85 XMLPortParam(InvisiblePickup, "duration", setDuration, getDuration, xmlelement, mode); 96 97 this->initializeIdentifier();98 86 } 99 87 … … 157 145 InvisiblePickup* pickup = orxonox_cast<InvisiblePickup*>(item); 158 146 pickup->setDuration(this->getDuration()); 159 pickup->initializeIdentifier();160 147 } 161 148
Note: See TracChangeset
for help on using the changeset viewer.