Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 18, 2012, 9:54:49 PM (12 years ago)
Author:
landauf
Message:

simplified code a little by using MultiType instead of explicit conversion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2012merge/src/modules/pickup/items/DamageBoostPickup.cc

    r9279 r9305  
    8282    void DamageBoostPickup::initializeIdentifier(void)
    8383    {
    84         std::stringstream stream;
    85         stream << this->getDuration();
    86         std::string type1 = "duration";
    87         std::string val1 = stream.str();
    88         this->pickupIdentifier_->addParameter(type1, val1);
    89 
    90         stream.clear();
    91         stream << this->getDamageMultiplier();
    92         std::string type2 = "damageMultiplier";
    93         std::string val2 = stream.str();
    94         this->pickupIdentifier_->addParameter(type2, val2);
    95 
     84        this->pickupIdentifier_->addParameter("duration", this->getDuration());
     85        this->pickupIdentifier_->addParameter("damageMultiplier", this->getDamageMultiplier());
    9686    }
    9787
Note: See TracChangeset for help on using the changeset viewer.