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

    r9319 r9320  
    181181    /**
    182182    @brief
    183         Creates a duplicate of the OrxonoxClass.
    184     @param item
    185         A reference to the pointer of the item that we're duplicating.
    186     */
    187     void Pickup::clone(OrxonoxClass*& item)
    188     {
    189         if(item == NULL)
    190             item = new Pickup(this);
    191 
    192         SUPER(Pickup, clone, item);
    193 
    194         Pickup* pickup = orxonox_cast<Pickup*>(item);
    195         pickup->setRepresentationName(this->getRepresentationName());
    196         pickup->setActivationType(this->getActivationType());
    197         pickup->setDurationType(this->getDurationType());
    198     }
    199 
    200     /**
    201     @brief
    202183        Facilitates the creation of a PickupSpawner upon dropping of the Pickupable.
    203184    @return
Note: See TracChangeset for help on using the changeset viewer.