Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 14, 2007, 3:50:14 PM (18 years ago)
Author:
retolu
Message:

adm working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/adm/src/world_entities/weapons/bsp_weapon.h

    r10690 r10694  
    1010#include "aiming_system.h"
    1111#include "effects/explosion.h"
     12
     13#include <list>
     14
     15#include "particles/box_emitter.h"
     16#include "particles/sprite_particles.h"
     17
     18class 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
    1248
    1349class BspWeapon : public WorldEntity
     
    3874                void setAlwaysHits( bool r ){ this->alwaysHits = r; }
    3975                void addPoint(float x, float y, float z);
    40                 PNode* gunFire1;
    41                 PNode* gunFire2;
     76               
     77    std::list<MuzzleFlash*> gunFire;
    4278
    4379                float bRate;
    4480                bool bFire;
    45                 int element;
    46 
    47                 Explosion gunFire;
    4881
    4982                AimingSystem* aimingSystem;
Note: See TracChangeset for help on using the changeset viewer.