Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 21, 2012, 3:51:06 PM (12 years ago)
Author:
landauf
Message:

removed Pickupable::clone() because it is not needed anymore

File:
1 edited

Legend:

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

    r9318 r9320  
    159159    /**
    160160    @brief
    161         Creates a duplicate of the input OrxonoxClass.
    162     @param item
    163         A pointer to the Orxonox class.
    164     */
    165     void ShieldPickup::clone(OrxonoxClass*& item)
    166     {
    167         if(item == NULL)
    168             item = new ShieldPickup(this);
    169 
    170         SUPER(ShieldPickup, clone, item);
    171 
    172         ShieldPickup* pickup = orxonox_cast<ShieldPickup*>(item);
    173         pickup->setDuration(this->getDuration());
    174         pickup->setShieldAbsorption(this->getShieldAbsorption());
    175         pickup->setShieldHealth(this->getShieldHealth());
    176     }
    177 
    178     /**
    179     @brief
    180161        Sets the duration.
    181162    @param duration
Note: See TracChangeset for help on using the changeset viewer.