Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 5, 2010, 6:26:54 PM (15 years ago)
Author:
dafrick
Message:

Additional documentation, code niceifying and potential bug fixing. Also: Renamed DroppedItem to DroppedPickup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickup3/src/modules/pickup/items/HealthPickup.cc

    r6474 r6475  
    3333
    3434#include "worldentities/pawns/Pawn.h"
     35#include "pickup/PickupIdentifier.h"
    3536
    3637#include <sstream>
     
    7071    void HealthPickup::initializeIdentifier(void)
    7172    {
    72         this->pickupIdentifier_.addClass(this->getIdentifier());
     73        this->pickupIdentifier_->addClass(this->getIdentifier());
    7374       
    7475        std::stringstream stream;
     
    7677        std::string type1 = "health";
    7778        std::string val1 = stream.str();
    78         this->pickupIdentifier_.addParameter(type1, val1);
     79        this->pickupIdentifier_->addParameter(type1, val1);
    7980       
    8081        //TODO: Does this work, is val valid outside the function scope?
    8182        std::string val2 = this->getHealthType();
    8283        std::string type2 = "healthType";
    83         this->pickupIdentifier_.addParameter(type2, val2);
     84        this->pickupIdentifier_->addParameter(type2, val2);
    8485    }
    8586   
Note: See TracChangeset for help on using the changeset viewer.