Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 21, 2012, 3:51:06 PM (13 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/DamageBoostPickup.cc

    r9318 r9320  
    169169    /**
    170170    @brief
    171         Creates a duplicate of the input OrxonoxClass.
    172     @param item
    173         A pointer to the Orxonox class.
    174     */
    175     void DamageBoostPickup::clone(OrxonoxClass*& item)
    176     {
    177         if(item == NULL)
    178             item = new DamageBoostPickup(this);
    179 
    180         SUPER(DamageBoostPickup, clone, item);
    181 
    182         DamageBoostPickup* pickup = orxonox_cast<DamageBoostPickup*>(item);
    183         pickup->setDuration(this->getDuration());
    184         pickup->setDamageMultiplier(this->getDamageMultiplier());
    185     }
    186 
    187     /**
    188     @brief
    189171        Sets the duration for which the DamageBoostPickup stays active.
    190172    @param duration
Note: See TracChangeset for help on using the changeset viewer.