Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/new_class_id/src/lib/graphics/effects/atmospheric_engine.h @ 9693

Last change on this file since 9693 was 9685, checked in by bensch, 18 years ago

adapted many classes to the new ClassID System, now comes the hard part… Scripting… then Network… wow this will be so bad :/

File size: 1006 bytes
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
12class TiXmlElement;
13
14class AtmosphericEngine : public BaseObject
15{
16  NewObjectListDeclaration(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.