Changeset 8855 for code/trunk/src/modules/weapons/weaponmodes/EnergyDrink.h
- Timestamp:
- Aug 22, 2011, 3:05:26 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/weapons/weaponmodes/EnergyDrink.h
r5929 r8855 27 27 */ 28 28 29 /** 30 @file EnergyDrink.h 31 @brief Definition of the EnergyDrink class. 32 */ 33 29 34 #ifndef _EnergyDrink_H__ 30 35 #define _EnergyDrink_H__ … … 38 43 namespace orxonox 39 44 { 45 46 /** 47 @brief 48 Shoots a can. 49 @author 50 Hagen Seifert 51 @ingroup WeaponsWeaponModes 52 */ 40 53 class _WeaponsExport EnergyDrink : public WeaponMode 41 54 { … … 48 61 49 62 private: 50 void setMaterial(const std::string& material); 51 inline const std::string& getMaterial() 63 /** 64 @brief Set the material of the EnergyDrink. 65 @param material The name of the material. 66 */ 67 void setMaterial(const std::string& material) 68 { this->material_ = material; } 69 /** 70 @brief Get the material of the EnergyDrink. 71 @return Returns the material name. 72 */ 73 inline const std::string& getMaterial() const 52 74 { return this->material_; } 53 void setDelay(float d); 54 float getDelay() const; 75 76 void setDelay(float delay); 77 /** 78 @brief Get the firing delay. 79 @return Returns the delay in seconds. 80 */ 81 float getDelay() const 82 { return this->delay_; } 83 55 84 void shot(); 56 void mu endungsfeuer();85 void muzzleflash(); 57 86 58 std::string material_; 59 float speed_; 60 float delay_; 61 Timer delayTimer_; 87 std::string material_; //!< The material. 88 float speed_; //!< The speed of the EnergyDrink. 89 float delay_; //!< The firing delay. 90 Timer delayTimer_; //!< The timer to delay the firing. 62 91 }; 63 92 }
Note: See TracChangeset
for help on using the changeset viewer.