Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/effects/lightning_bolt.h @ 7112

Last change on this file since 7112 was 7112, checked in by patrick, 18 years ago

trunk: working thunder

File size: 1.1 KB
Line 
1/*!
2 * @file explosion.h
3 * @brief a LightningBolt Projectile
4*/
5
6#ifndef _LIGHTNING_BOLT_H
7#define _LIGHTNING_BOLT_H
8
9#include "world_entity.h"
10
11#include "sound_buffer.h"
12#include "sound_source.h"
13
14class Material;
15
16class LightningBolt : public WorldEntity
17{
18  public:
19    LightningBolt(const TiXmlElement* root = NULL);
20    virtual ~LightningBolt ();
21
22    virtual void activate();
23    virtual void deactivate();
24
25    virtual void tick(float time);
26    virtual void draw() const;
27
28  private:
29    float flashFrequency;                   //!< frequency to activate itself
30    float flashRisingTime;                  //!< time to rise
31    float flashConstTime;                   //!< time to be drawn
32    float flashFallTime;                    //!< time to fall
33
34    float time;                             //!< time
35
36    bool  bRender;
37    bool  bNewCoordinate;
38    Material*      material;
39    Vector         offset;
40    float width;
41    float height;
42
43    float seedX;
44    float seedZ;
45    float seedTime;
46
47    SoundSource    soundSource;
48    SoundBuffer*   thunderBuffer;
49};
50
51#endif /* _LIGHTNING_BOLT_H */
Note: See TracBrowser for help on using the repository browser.