- 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/HealthPickup.cc
r9279 r9305 91 91 void HealthPickup::initializeIdentifier(void) 92 92 { 93 std::stringstream stream; 94 stream << this->getHealth(); 95 std::string type1 = "health"; 96 std::string val1 = stream.str(); 97 this->pickupIdentifier_->addParameter(type1, val1); 98 99 std::string val2 = this->getHealthType(); 100 std::string type2 = "healthType"; 101 this->pickupIdentifier_->addParameter(type2, val2); 102 103 stream.clear(); 104 stream << this->getHealthRate(); 105 std::string val3 = stream.str(); 106 std::string type3 = "healthRate"; 107 this->pickupIdentifier_->addParameter(type3, val3); 93 this->pickupIdentifier_->addParameter("health", this->getHealth()); 94 this->pickupIdentifier_->addParameter("healthType", this->getHealthType()); 95 this->pickupIdentifier_->addParameter("healthRate", this->getHealthRate()); 108 96 } 109 97
Note: See TracChangeset
for help on using the changeset viewer.