Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/weather_effects/atmospheric_engine.h @ 10281

Last change on this file since 10281 was 9869, checked in by bensch, 18 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 1003 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  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.