- Timestamp:
- Jul 18, 2012, 10:36:24 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/modules/pickup/Pickup.cc
r9313 r9318 36 36 #include "core/CoreIncludes.h" 37 37 #include "util/StringUtils.h" 38 39 #include "pickup/PickupIdentifier.h"40 38 41 39 #include "DroppedPickup.h" … … 86 84 /** 87 85 @brief 88 Initializes the PickupIdentififer of this Pickup.89 */90 void Pickup::initializeIdentifier(void)91 {92 this->pickupIdentifier_->addParameter("activationType", this->getActivationType());93 this->pickupIdentifier_->addParameter("durationType", this->getDurationType());94 }95 96 /**97 @brief98 86 Method for creating a Pickup object through XML. 99 87 */ … … 102 90 SUPER(Pickup, XMLPort, xmlelement, mode); 103 91 92 XMLPortParam(Pickup, "representation", setRepresentationName, getRepresentationName, xmlelement, mode); 104 93 XMLPortParam(Pickup, "activationType", setActivationTypeAsString, getActivationTypeAsString, xmlelement, mode); 105 94 XMLPortParam(Pickup, "durationType", setDurationTypeAsString, getDurationTypeAsString, xmlelement, mode); 106 107 this->initializeIdentifier();108 95 } 109 96 … … 206 193 207 194 Pickup* pickup = orxonox_cast<Pickup*>(item); 195 pickup->setRepresentationName(this->getRepresentationName()); 208 196 pickup->setActivationType(this->getActivationType()); 209 197 pickup->setDurationType(this->getDurationType()); 210 211 pickup->initializeIdentifier();212 198 } 213 199
Note: See TracChangeset
for help on using the changeset viewer.