Last change
on this file since 7504 was
7503,
checked in by hdavid, 19 years ago
|
branches/atmospheric_engine: killing the weather effects works
|
File size:
1.1 KB
|
Line | |
---|
1 | /*! |
---|
2 | * @file atmospheric_engine.h |
---|
3 | * |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _ATMOSPHERIC_ENGINE_H |
---|
7 | #define _ATMOSPHERIC_ENGINE_H |
---|
8 | |
---|
9 | #include "base_object.h" |
---|
10 | |
---|
11 | |
---|
12 | class TiXmlElement; |
---|
13 | |
---|
14 | class AtmosphericEngine : public BaseObject |
---|
15 | { |
---|
16 | public: |
---|
17 | ~AtmosphericEngine(); |
---|
18 | |
---|
19 | /** @returns a Pointer to the only object of this Class */ |
---|
20 | inline static AtmosphericEngine* getInstance() { if (!AtmosphericEngine::singletonRef) AtmosphericEngine::singletonRef = new AtmosphericEngine(); return AtmosphericEngine::singletonRef; }; |
---|
21 | |
---|
22 | void loadParams(const TiXmlElement* root); |
---|
23 | |
---|
24 | // bool init(); |
---|
25 | |
---|
26 | void draw() const; |
---|
27 | void tick(float dt); |
---|
28 | |
---|
29 | // inline bool isActivated() const { return this->bActivated; } |
---|
30 | |
---|
31 | void loadWeatherEffect(const TiXmlElement* root); |
---|
32 | void loadSunEffect(const TiXmlElement* root); |
---|
33 | |
---|
34 | private: |
---|
35 | |
---|
36 | AtmosphericEngine(); |
---|
37 | |
---|
38 | static AtmosphericEngine* singletonRef; //!< Pointer to the only instance of this Class |
---|
39 | const std::list<BaseObject*>* weatherEffects; //!< list of weather effects |
---|
40 | |
---|
41 | //protected: |
---|
42 | // bool bActivated; |
---|
43 | }; |
---|
44 | |
---|
45 | |
---|
46 | #endif /* _ATMOSPHERIC_ENGINE */ |
---|
Note: See
TracBrowser
for help on using the repository browser.