| 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 |   ObjectListDeclaration(AtmosphericEngine); | 
|---|
| 17 |   public: | 
|---|
| 18 |     ~AtmosphericEngine(); | 
|---|
| 19 |  | 
|---|
| 20 |     /** @returns a Pointer to the only object of this Class */ | 
|---|
| 21 |     inline static AtmosphericEngine* getInstance() { if (!AtmosphericEngine::singletonRef) AtmosphericEngine::singletonRef = new AtmosphericEngine();  return AtmosphericEngine::singletonRef; }; | 
|---|
| 22 |  | 
|---|
| 23 |     void loadParams(const TiXmlElement* root); | 
|---|
| 24 |  | 
|---|
| 25 |     void init(); | 
|---|
| 26 |  | 
|---|
| 27 |     void draw() const; | 
|---|
| 28 |     void tick(float dt); | 
|---|
| 29 |  | 
|---|
| 30 |     // inline bool isActivated() const { return this->bActivated; } | 
|---|
| 31 |  | 
|---|
| 32 |     void loadWeatherEffect(const TiXmlElement* root); | 
|---|
| 33 |     void loadSunEffect(const TiXmlElement* root); | 
|---|
| 34 |  | 
|---|
| 35 |   private: | 
|---|
| 36 |  | 
|---|
| 37 |     AtmosphericEngine(); | 
|---|
| 38 |  | 
|---|
| 39 |     static AtmosphericEngine*     singletonRef;       //!< Pointer to the only instance of this Class | 
|---|
| 40 | }; | 
|---|
| 41 |  | 
|---|
| 42 |  | 
|---|
| 43 | #endif /* _ATMOSPHERIC_ENGINE */ | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.