- Timestamp:
- Jul 21, 2012, 3:51:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/modules/pickup/Pickup.cc
r9319 r9320 181 181 /** 182 182 @brief 183 Creates a duplicate of the OrxonoxClass.184 @param item185 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 @brief202 183 Facilitates the creation of a PickupSpawner upon dropping of the Pickupable. 203 184 @return
Note: See TracChangeset
for help on using the changeset viewer.