Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 24, 2011, 3:28:55 PM (13 years ago)
Author:
dafrick
Message:

Moved clone base method into Pickupable to avoid ambiguity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/interfaces/Pickupable.h

    r7552 r8866  
    137137
    138138            Pickupable* clone(void); //!< Creates a duplicate of the Pickupable.
    139             virtual void clone(OrxonoxClass*& item); //!< Creates a duplicate of the input OrxonoxClass.
     139            /**
     140            @brief Creates a duplicate of the input OrxonoxClass.
     141                   This method needs to be implemented by any Class inheriting from Pickupable.
     142            @param item A reference to a pointer to the OrxonoxClass that is to be duplicated.
     143            */
     144            virtual void clone(OrxonoxClass*& item) {}
    140145
    141146            /**
     
    200205    SUPER_FUNCTION(12, Pickupable, changedCarrier, false);
    201206    SUPER_FUNCTION(13, Pickupable, changedPickedUp, false);
     207    SUPER_FUNCTION(11, Pickupable, clone, false);
    202208}
    203209
Note: See TracChangeset for help on using the changeset viewer.