source:
orxonox.OLD/trunk/src/world_entities/weather_effects/weather_effect.h
| Last change on this file was 9869, checked in by bensch, 19 years ago | |
|---|---|
| File size: 659 bytes | |
| Rev | Line | |
|---|---|---|
| [7381] | 1 | /*! |
| 2 | * @file weather_effect.h | |
| [8495] | 3 | * |
| [7381] | 4 | */ |
| 5 | ||
| 6 | #ifndef _WEATHER_EFFECT_H | |
| 7 | #define _WEATHER_EFFECT_H | |
| 8 | ||
| 9 | #include "base_object.h" | |
| 10 | ||
| 11 | ||
| [7382] | 12 | class WeatherEffect : public BaseObject |
| [7381] | 13 | { |
| [9715] | 14 | ObjectListDeclaration(WeatherEffect); |
| [9685] | 15 | |
| [7381] | 16 | public: |
| [7382] | 17 | WeatherEffect(const TiXmlElement* root = NULL); |
| [7381] | 18 | virtual ~WeatherEffect(); |
| 19 | ||
| 20 | virtual void loadParams(const TiXmlElement* root); | |
| 21 | ||
| [8495] | 22 | virtual void init(); |
| [7381] | 23 | |
| [8495] | 24 | virtual void activate() = 0; |
| 25 | virtual void deactivate() = 0; | |
| [7381] | 26 | |
| 27 | virtual void draw() const; | |
| 28 | virtual void tick(float dt); | |
| 29 | ||
| [8495] | 30 | inline bool isActivated() const { return this->bActivated; } |
| [7381] | 31 | |
| 32 | ||
| 33 | protected: | |
| 34 | bool bActivated; | |
| 35 | }; | |
| 36 | ||
| 37 | ||
| 38 | #endif /* _WEATHER_EFFECT */ |
Note: See TracBrowser
for help on using the repository browser.










