]> git.mxchange.org Git - flightgear.git/blobdiff - src/Environment/environment_mgr.hxx
Forgot to implment the Node.getChild(name, index) form of the function
[flightgear.git] / src / Environment / environment_mgr.hxx
index 0ad652e71108c987fcddf15796df09769294898e..abef848f54fa0801d1a4158f178b2762dad60323 100644 (file)
@@ -24,8 +24,7 @@
 #define _ENVIRONMENT_MGR_HXX
 
 #include <simgear/compiler.h>
-
-#include <Main/fgfs.hxx>
+#include <simgear/structure/subsystem_mgr.hxx>
 
 #ifdef SG_HAVE_STD_INCLUDES
 #  include <cmath>
@@ -40,7 +39,7 @@ class FGEnvironmentCtrl;
 /**
  * Manage environment information.
  */
-class FGEnvironmentMgr : public FGSubsystem
+class FGEnvironmentMgr : public SGSubsystemGroup
 {
 
 public:
@@ -53,6 +52,7 @@ public:
   virtual ~FGEnvironmentMgr ();
 
   virtual void init ();
+  virtual void reinit ();
   virtual void bind ();
   virtual void unbind ();
   virtual void update (double dt);
@@ -81,8 +81,8 @@ private:
   void set_cloud_layer_thickness_ft (int index, double thickness_ft);
   double get_cloud_layer_transition_ft (int index) const;
   void set_cloud_layer_transition_ft (int index, double transition_ft);
-  const char * get_cloud_layer_type (int index) const;
-  void set_cloud_layer_type (int index, const char * type);
+  const char * get_cloud_layer_coverage (int index) const;
+  void set_cloud_layer_coverage (int index, const char * coverage);
 
   FGEnvironment * _environment;        // always the same, for now
   FGEnvironmentCtrl * _controller; // always the same, for now