- Timestamp:
- May 4, 2012, 3:56:56 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup2012/src/modules/pickup/items/DamageBoostPickup.h
r9119 r9155 21 21 * 22 22 * Author: 23 * Damian 'Mozork' Frick23 * Kevin Lengauer 24 24 * Co-authors: 25 25 * ... … … 53 53 54 54 virtual void XMLPort(Element& xmlelement, orxonox::XMLPort::Mode mode); //!< Method for creating a DamageBoostPickup object through XML. 55 // commented out cuz was not used56 // virtual void tick(float dt); //!< Is called every tick.57 55 58 56 virtual void changedUsed(void); //!< Is called when the pickup has transited from used to unused or the other way around. 59 57 virtual void clone(OrxonoxClass*& item); //!< Creates a duplicate of the input OrxonoxClass. 60 61 /**62 @brief Get the damageboost that is transferred to the Pawn upon usage of this pickup.63 @return Returns the damageboost.64 */65 // Commentend, may not be used66 // inline float setDamageMultiplier(void) const67 // { ship->setMultiplier(); }68 69 58 70 59 /** … … 77 66 78 67 79 // we need these methods to set the default damage multiplier from XML 80 // not that beautiful yet 81 inline void setDefaultDamageMultiplier(float multiplier) 82 { this->damageMultiplier_ = multiplier; } 83 inline float getDefaultDamageMultiplier() 68 69 /** 70 @brief set Damage multiplier 71 @param multiplier The default damage multiplier to set 72 */ 73 inline float getDamageMultiplier() 84 74 { return this->damageMultiplier_; } 85 75 … … 89 79 protected: 90 80 void initializeIdentifier(void); //!< Initializes the PickupIdentifier of this pickup. 81 void setDamageMultiplier(float damageMultiplier); 91 82 92 // void setDamageBoost(float damageBoost);//!< Sets the damage boost.93 // void setDamageSave(float damageSave); //!< Saves the original damage.94 83 95 84 private: 96 85 void initialize(void); //!< Initializes the member variables. 97 86 Pawn* carrierToPawnHelper(void); //!< Helper to transform the PickupCarrier to a Pawn, and throw an error message if the conversion fails. 98 SpaceShip* carrierToSpaceShipHelper(void); 87 SpaceShip* carrierToSpaceShipHelper(void); //!< Helper to transform the PickupCarrier to a SpaceShip, and throw an error message if the conversion fails. 99 88 void pickupTimerCallback(void); 100 89
Note: See TracChangeset
for help on using the changeset viewer.