- Timestamp:
- Jun 3, 2012, 6:05:24 PM (12 years ago)
- Location:
- code/branches/presentation2012merge/src/modules/pickup/items
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/modules/pickup/items/DamageBoostPickup.cc
r9271 r9272 70 70 void DamageBoostPickup::initialize(void) 71 71 { 72 73 72 this->duration_ = 0.0f; 73 this->damageMultiplier_ = 1.0f; //The default damage multiplier. 74 74 //Defines who is allowed to pick up the pickup. 75 75 this->addTarget(ClassIdentifier<SpaceShip>::getIdentifier()); … … 130 130 SpaceShip* ship = this->carrierToSpaceShipHelper(); 131 131 if(ship == NULL) // If the PickupCarrier is no SpaceShip, then this pickup is useless and therefore is destroyed. 132 132 this->Pickupable::destroy(); 133 133 134 134 -
code/branches/presentation2012merge/src/modules/pickup/items/DamageBoostPickup.h
r9271 r9272 57 57 virtual void clone(OrxonoxClass*& item); //!< Creates a duplicate of the input OrxonoxClass. 58 58 59 59 /** 60 60 @brief Get the time the DamagePickup lasts. 61 61 @return Returns the time in seconds the DamagePickup lasts. … … 95 95 96 96 Timer durationTimer_; //!< Timer. 97 97 float duration_; //! Duration of damage boost. 98 98 99 99 };
Note: See TracChangeset
for help on using the changeset viewer.