Last change
on this file since 9424 was
8793,
checked in by patrick, 18 years ago
|
trunk: merged the weather engine branche to the trunk
|
File size:
609 bytes
|
Rev | Line | |
---|
[7381] | 1 | /*! |
---|
| 2 | * @file sun_effect.h |
---|
[8793] | 3 | * |
---|
[7381] | 4 | */ |
---|
| 5 | |
---|
| 6 | #ifndef _SUN_EFFECT_H |
---|
| 7 | #define _SUN_EFFECT_H |
---|
| 8 | |
---|
| 9 | #include "base_object.h" |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | class TiXmlElement; |
---|
| 13 | |
---|
| 14 | class SunEffect : public BaseObject |
---|
| 15 | { |
---|
| 16 | public: |
---|
| 17 | SunEffect(const TiXmlElement* root = NULL); |
---|
| 18 | virtual ~SunEffect(); |
---|
| 19 | |
---|
| 20 | virtual void loadParams(const TiXmlElement* root); |
---|
| 21 | |
---|
[8793] | 22 | virtual void init(); |
---|
[7381] | 23 | |
---|
[8793] | 24 | virtual void activate() = 0; |
---|
| 25 | virtual void deactivate() = 0; |
---|
[7381] | 26 | |
---|
| 27 | virtual void draw() const; |
---|
| 28 | virtual void tick(float dt); |
---|
| 29 | |
---|
| 30 | inline bool isActivated() const { return this->bActivated; } |
---|
| 31 | |
---|
| 32 | protected: |
---|
| 33 | bool bActivated; |
---|
| 34 | }; |
---|
| 35 | |
---|
| 36 | |
---|
[7383] | 37 | #endif /* _SUN_EFFECT */ |
---|
Note: See
TracBrowser
for help on using the repository browser.