Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 7, 2010, 2:05:05 PM (14 years ago)
Author:
dafrick
Message:

Simplification in creation of PickupIdentifier.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickup3/src/orxonox/pickup/PickupIdentifier.h

    r6475 r6480  
    5454       
    5555        public:
    56             PickupIdentifier(void); //!< Constructor.
     56            PickupIdentifier(Pickupable* pickup); //!< Constructor.
    5757            ~PickupIdentifier(); //!< Destructor.
    5858           
    5959            virtual int compare(const PickupIdentifier* identifier) const; //!< Compares two PickupIdentifiers and returns 0 if a == b, <0 if a < b and >0 if a > b for a.compare(b).
    6060           
    61             void addClass(Identifier* identifier); //!< Add the class of the Pickupable to its PickupIdentifier.
    6261            bool addParameter(std::string & name, std::string & value); //!< Add a parameter to the PickupIdentifier.
    6362           
    6463        private:
    65             Identifier* classIdentifier_; //!< The Identifier of the class.
     64            Pickupable* pickup_; //!< The Pickupable the PickupIdentififer is for.
    6665            std::map<std::string, std::string> parameters_; //!< The parameters identifying the type of the pickup beyond the class.
    6766           
Note: See TracChangeset for help on using the changeset viewer.