Changeset 6475 for code/branches/pickup3/src/modules/pickup/items
- Timestamp:
- Mar 5, 2010, 6:26:54 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup3/src/modules/pickup/items/HealthPickup.cc
r6474 r6475 33 33 34 34 #include "worldentities/pawns/Pawn.h" 35 #include "pickup/PickupIdentifier.h" 35 36 36 37 #include <sstream> … … 70 71 void HealthPickup::initializeIdentifier(void) 71 72 { 72 this->pickupIdentifier_ .addClass(this->getIdentifier());73 this->pickupIdentifier_->addClass(this->getIdentifier()); 73 74 74 75 std::stringstream stream; … … 76 77 std::string type1 = "health"; 77 78 std::string val1 = stream.str(); 78 this->pickupIdentifier_ .addParameter(type1, val1);79 this->pickupIdentifier_->addParameter(type1, val1); 79 80 80 81 //TODO: Does this work, is val valid outside the function scope? 81 82 std::string val2 = this->getHealthType(); 82 83 std::string type2 = "healthType"; 83 this->pickupIdentifier_ .addParameter(type2, val2);84 this->pickupIdentifier_->addParameter(type2, val2); 84 85 } 85 86
Note: See TracChangeset
for help on using the changeset viewer.