Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 18, 2009, 2:06:04 PM (16 years ago)
Author:
Hagen
Message:

working laser style weapon with muzzleflash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weapons/src/orxonox/objects/weaponsystem/weaponmodes/HsW01.h

    r2901 r2979  
    2121 *
    2222 *   Author:
    23  *      Martin Polak
     23 *      Hagen Seifert
    2424 *   Co-authors:
    2525 *      ...
     
    3131
    3232#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"
    4135
    4236namespace orxonox
    4337{
    44     class _OrxonoxExport HsW01 : public Weapon
     38    class _OrxonoxExport HsW01 : public WeaponMode
    4539    {
    4640        public:
    4741            HsW01(BaseObject* creator);
    48             virtual ~HsW01();
     42            virtual ~HsW01() {}
    4943
    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);
    5546
    5647        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_;
    5756            float speed_;
    58 
     57            float delay_;
     58            Timer<HsW01> delayTimer_;
    5959    };
    6060}
Note: See TracChangeset for help on using the changeset viewer.