Changeset 8855 for code/trunk/src/modules/weapons/weaponmodes/HsW01.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/HsW01.h
r6417 r8855 27 27 */ 28 28 29 /** 30 @file HsW01.h 31 @brief Definition of the HsW01 class. 32 */ 33 29 34 #ifndef _HsW01_H__ 30 35 #define _HsW01_H__ … … 37 42 namespace orxonox 38 43 { 44 45 /** 46 @brief 47 Shoots laser beams. 48 @author 49 Hagen Seifert 50 @ingroup WeaponsWeaponModes 51 */ 39 52 class _WeaponsExport HsW01 : public WeaponMode 40 53 { … … 47 60 48 61 private: 49 void setMaterial(const std::string& material); 50 std::string& getMaterial(); 51 void setDelay(float d); 52 float getDelay() const; 62 /** 63 @brief Set the material. 64 @param material The material name. 65 */ 66 void setMaterial(const std::string& material) 67 { this->material_ = material; } 68 /** 69 @brief Get the material. 70 @return Returns the material name. 71 */ 72 const std::string& getMaterial() const 73 { return this->material_; } 74 75 void setDelay(float delay); 76 /** 77 @brief Get the firing delay. 78 @return Returns the firing delay in seconds. 79 */ 80 float getDelay() const 81 { return this->delay_; } 82 53 83 void shot(); 54 void mu endungsfeuer();84 void muzzleflash(); 55 85 56 std::string material_; 57 float speed_; 58 float delay_; 59 Timer delayTimer_; 86 std::string material_; //!< The material. 87 float speed_; //!< The speed of the fired projectile. 88 float delay_; //!< The firing delay. 89 Timer delayTimer_; //!< A timer to delay the firing. 60 90 }; 61 91 }
Note: See TracChangeset
for help on using the changeset viewer.