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.h

    r9313 r9318  
    105105            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    106106
     107            virtual const std::string& getRepresentationName() const
     108                { return this->representationName_; }
     109
    107110            /**
    108111            @brief Get the activation type of the Pickup.
     
    150153
    151154        protected:
    152             void initializeIdentifier(void);
     155            virtual bool createSpawner(void); //!< Facilitates the creation of a PickupSpawner upon dropping of the Pickupable.
    153156
    154             virtual bool createSpawner(void); //!< Facilitates the creation of a PickupSpawner upon dropping of the Pickupable.
     157            /**
     158            @brief Sets the representation name which refers to the name of the PickupRepresentation that is used to represent this pickup.
     159            */
     160            inline void setRepresentationName(const std::string& name)
     161                { this->representationName_ = name; }
    155162
    156163            /**
     
    173180            void initialize(void); //!< Initializes the member variables.
    174181
     182            std::string representationName_; //!< The name of the associated PickupRepresentation.
    175183            pickupActivationType::Value activationType_; //!< The activation type of the Pickup.
    176184            pickupDurationType::Value durationType_; //!< The duration type of the Pickup.
Note: See TracChangeset for help on using the changeset viewer.