Last change
on this file since 7379 was
7379,
checked in by hdavid, 19 years ago
|
branches/atmospheric_engine: basic framework
|
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 | virtual ~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 | virtual void loadParams(const TiXmlElement* root); |
---|
23 | |
---|
24 | virtual bool init(); |
---|
25 | |
---|
26 | //virtual bool activate() = 0; |
---|
27 | //virtual bool deactivate() = 0; |
---|
28 | |
---|
29 | virtual void draw() const; |
---|
30 | virtual void tick(float dt); |
---|
31 | |
---|
32 | inline bool isActivated() const { return this->bActivated; } |
---|
33 | |
---|
34 | void loadWeatherEffects(const TiXmlElement* root); |
---|
35 | void loadSunEffects(const TiXmlElement* root); |
---|
36 | |
---|
37 | private: |
---|
38 | |
---|
39 | AtmosphericEngine(); |
---|
40 | |
---|
41 | static AtmosphericEngine* singletonRef; //!< Pointer to the only instance of this Class |
---|
42 | |
---|
43 | protected: |
---|
44 | bool bActivated; |
---|
45 | }; |
---|
46 | |
---|
47 | |
---|
48 | #endif /* _ATMOSPHERIC_ENGINE */ |
---|
Note: See
TracBrowser
for help on using the repository browser.