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/ShrinkPickup.cc

    r9318 r9320  
    294294        return pawn;
    295295    }
    296 
    297     /**
    298     @brief
    299         Creates a duplicate of the input OrxonoxClass.
    300     @param item
    301         A pointer to the Orxonox class.
    302     */
    303     void ShrinkPickup::clone(OrxonoxClass*& item)
    304     {
    305         if(item == NULL)
    306             item = new ShrinkPickup(this);
    307 
    308         SUPER(ShrinkPickup, clone, item);
    309         ShrinkPickup* pickup = orxonox_cast<ShrinkPickup*>(item);
    310         pickup->setShrinkFactor(this->getShrinkFactor());
    311         pickup->setDuration(this->getDuration());
    312         pickup->setShrinkDuration(this->getShrinkDuration());
    313     }
    314296}
Note: See TracChangeset for help on using the changeset viewer.