- Timestamp:
- Jul 21, 2012, 3:51:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/modules/pickup/items/ShieldPickup.cc
r9318 r9320 159 159 /** 160 160 @brief 161 Creates a duplicate of the input OrxonoxClass.162 @param item163 A pointer to the Orxonox class.164 */165 void ShieldPickup::clone(OrxonoxClass*& item)166 {167 if(item == NULL)168 item = new ShieldPickup(this);169 170 SUPER(ShieldPickup, clone, item);171 172 ShieldPickup* pickup = orxonox_cast<ShieldPickup*>(item);173 pickup->setDuration(this->getDuration());174 pickup->setShieldAbsorption(this->getShieldAbsorption());175 pickup->setShieldHealth(this->getShieldHealth());176 }177 178 /**179 @brief180 161 Sets the duration. 181 162 @param duration
Note: See TracChangeset
for help on using the changeset viewer.