- Timestamp:
- May 18, 2009, 2:06:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/HsW01.h
r2901 r2979 21 21 * 22 22 * Author: 23 * Martin Polak23 * Hagen Seifert 24 24 * Co-authors: 25 25 * ... … … 31 31 32 32 #include "OrxonoxPrereqs.h" 33 34 #include "core/BaseObject.h" 35 36 #include "../munitions/LaserGunMunition.h" 37 #include "util/Math.h" 38 #include "../Weapon.h" 39 #include "../projectiles/BillboardProjectile.h" 40 #include "../projectiles/ParticleProjectile.h" 33 #include "objects/weaponsystem/WeaponMode.h" 34 #include "tools/Timer.h" 41 35 42 36 namespace orxonox 43 37 { 44 class _OrxonoxExport HsW01 : public Weapon 38 class _OrxonoxExport HsW01 : public WeaponMode 45 39 { 46 40 public: 47 41 HsW01(BaseObject* creator); 48 virtual ~HsW01() ;42 virtual ~HsW01() {} 49 43 50 virtual void takeBullets(); 51 virtual void takeMagazines(); 52 virtual void createProjectile(); 53 virtual void reloadBullet(); 54 virtual void reloadMagazine(); 44 virtual void fire(); 45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 55 46 56 47 private: 48 void setMaterial(const std::string& material); 49 std::string& getMaterial(); 50 void setDelay(float d); 51 float getDelay() const; 52 void shot(); 53 void muendungsfeuer(); 54 55 std::string material_; 57 56 float speed_; 58 57 float delay_; 58 Timer<HsW01> delayTimer_; 59 59 }; 60 60 }
Note: See TracChangeset
for help on using the changeset viewer.