- Timestamp:
- Jun 18, 2012, 9:54:49 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/modules/pickup/items/ShieldPickup.cc
r9279 r9305 84 84 void ShieldPickup::initializeIdentifier(void) 85 85 { 86 std::stringstream stream; 87 stream << this->getDuration(); 88 std::string type1 = "duration"; 89 std::string val1 = stream.str(); 90 this->pickupIdentifier_->addParameter(type1, val1); 91 92 stream.clear(); 93 stream << this->getShieldHealth(); 94 std::string type2 = "ShieldHealth"; 95 std::string val2 = stream.str(); 96 this->pickupIdentifier_->addParameter(type2, val2); 97 98 stream.clear(); 99 stream << this->getShieldAbsorption(); 100 std::string type3 = "ShieldAbsorption"; 101 std::string val3 = stream.str(); 102 this->pickupIdentifier_->addParameter(type3, val3); 103 86 this->pickupIdentifier_->addParameter("duration", this->getDuration()); 87 this->pickupIdentifier_->addParameter("ShieldHealth", this->getShieldHealth()); 88 this->pickupIdentifier_->addParameter("ShieldAbsorption", this->getShieldAbsorption()); 104 89 } 105 90
Note: See TracChangeset
for help on using the changeset viewer.