| 
                Last change
                  on this file since 8455 was
                  8455,
                  checked in by amaechler, 19 years ago
           | 
        
        
          | 
               
branches/atmospheric_engine: fog & changed init & activate fcts from bool to void 
 
           | 
        
        | 
            File size:
            612 bytes
           | 
      
      
        
  | Line |   | 
|---|
| 1 | /*! | 
|---|
| 2 |  * @file weather_effect.h | 
|---|
| 3 |  *   | 
|---|
| 4 |  */ | 
|---|
| 5 |  | 
|---|
| 6 | #ifndef _WEATHER_EFFECT_H | 
|---|
| 7 | #define _WEATHER_EFFECT_H | 
|---|
| 8 |  | 
|---|
| 9 | #include "base_object.h" | 
|---|
| 10 |  | 
|---|
| 11 |  | 
|---|
| 12 | class WeatherEffect : public BaseObject | 
|---|
| 13 | { | 
|---|
| 14 |   public: | 
|---|
| 15 |     WeatherEffect(const TiXmlElement* root = NULL); | 
|---|
| 16 |     virtual ~WeatherEffect(); | 
|---|
| 17 |  | 
|---|
| 18 |     virtual void loadParams(const TiXmlElement* root); | 
|---|
| 19 |  | 
|---|
| 20 |     virtual void init(); | 
|---|
| 21 |  | 
|---|
| 22 |     virtual void activate(); | 
|---|
| 23 |     virtual void deactivate(); | 
|---|
| 24 |  | 
|---|
| 25 |     virtual void draw() const; | 
|---|
| 26 |     virtual void tick(float dt); | 
|---|
| 27 |  | 
|---|
| 28 |     inline  bool isActivated() const { return this->bActivated; } | 
|---|
| 29 |  | 
|---|
| 30 |  | 
|---|
| 31 |   protected: | 
|---|
| 32 |     bool              bActivated; | 
|---|
| 33 | }; | 
|---|
| 34 |  | 
|---|
| 35 |  | 
|---|
| 36 | #endif /* _WEATHER_EFFECT */ | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.