- Timestamp:
- Jul 21, 2012, 3:51:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/modules/pickup/items/ShrinkPickup.cc
r9318 r9320 294 294 return pawn; 295 295 } 296 297 /**298 @brief299 Creates a duplicate of the input OrxonoxClass.300 @param item301 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 }314 296 }
Note: See TracChangeset
for help on using the changeset viewer.