Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 18, 2012, 10:36:24 PM (12 years ago)
Author:
landauf
Message:

removed PickupIdentifier for a number of reasons (I talked to Damian about it before)
a pickup now references the PickupRepresentation by name with the "representation" attribute

File:
1 edited

Legend:

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

    r9313 r9318  
    3636#include "core/CoreIncludes.h"
    3737#include "util/StringUtils.h"
    38 
    39 #include "pickup/PickupIdentifier.h"
    4038
    4139#include "DroppedPickup.h"
     
    8684    /**
    8785    @brief
    88         Initializes the PickupIdentififer of this Pickup.
    89     */
    90     void Pickup::initializeIdentifier(void)
    91     {
    92         this->pickupIdentifier_->addParameter("activationType", this->getActivationType());
    93         this->pickupIdentifier_->addParameter("durationType", this->getDurationType());
    94     }
    95 
    96     /**
    97     @brief
    9886        Method for creating a Pickup object through XML.
    9987    */
     
    10290        SUPER(Pickup, XMLPort, xmlelement, mode);
    10391
     92        XMLPortParam(Pickup, "representation", setRepresentationName, getRepresentationName, xmlelement, mode);
    10493        XMLPortParam(Pickup, "activationType", setActivationTypeAsString, getActivationTypeAsString, xmlelement, mode);
    10594        XMLPortParam(Pickup, "durationType", setDurationTypeAsString, getDurationTypeAsString, xmlelement, mode);
    106 
    107         this->initializeIdentifier();
    10895    }
    10996
     
    206193
    207194        Pickup* pickup = orxonox_cast<Pickup*>(item);
     195        pickup->setRepresentationName(this->getRepresentationName());
    208196        pickup->setActivationType(this->getActivationType());
    209197        pickup->setDurationType(this->getDurationType());
    210 
    211         pickup->initializeIdentifier();
    212198    }
    213199
Note: See TracChangeset for help on using the changeset viewer.