Changeset 10694 in orxonox.OLD for branches/adm/src/world_entities/weapons/bsp_weapon.h
- Timestamp:
- Jun 14, 2007, 3:50:14 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/adm/src/world_entities/weapons/bsp_weapon.h
r10690 r10694 10 10 #include "aiming_system.h" 11 11 #include "effects/explosion.h" 12 13 #include <list> 14 15 #include "particles/box_emitter.h" 16 #include "particles/sprite_particles.h" 17 18 class MuzzleFlash : public WorldEntity 19 { 20 ObjectListDeclaration(MuzzleFlash); 21 public: 22 void explode (float lifetime); 23 24 MuzzleFlash (); 25 virtual ~MuzzleFlash (); 26 27 virtual void activate(); 28 virtual void deactivate(); 29 30 virtual void tick (float time); 31 virtual void draw() const; 32 33 void setLifeTime( float lifeTime ){ this->lifeTime = lifeTime; } 34 35 void drawParticles(){ if (explosionParticles) explosionParticles->draw(); } 36 37 protected: 38 //static FastFactory* fastFactory; 39 40 float lifeTime; 41 float lifeCycle; 42 43 SpriteParticles* explosionParticles; 44 BoxEmitter* emitter; 45 46 }; 47 12 48 13 49 class BspWeapon : public WorldEntity … … 38 74 void setAlwaysHits( bool r ){ this->alwaysHits = r; } 39 75 void addPoint(float x, float y, float z); 40 PNode* gunFire1;41 PNode* gunFire2;76 77 std::list<MuzzleFlash*> gunFire; 42 78 43 79 float bRate; 44 80 bool bFire; 45 int element;46 47 Explosion gunFire;48 81 49 82 AimingSystem* aimingSystem;
Note: See TracChangeset
for help on using the changeset viewer.