]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scenery/scenery.hxx
Lots of changes to the ATC/AI system for initial revision of random AI GA VFR traffic
[flightgear.git] / src / Scenery / scenery.hxx
index 4d506e4b709b1ea4877c2216197ecc9a6e1e0c27..0ba923cd4a1e4404ba15f9b1a8fd7f258aa89f13 100644 (file)
 #include <plib/sg.h>
 #include <plib/ssg.h>
 
+#include <simgear/structure/subsystem_mgr.hxx>
 #include <simgear/math/point3d.hxx>
 
-#include <Main/fgfs.hxx>
-
 
 // Define a structure containing global scenery parameters
-class FGScenery : public FGSubsystem {
+class FGScenery : public SGSubsystem {
     // center of current scenery chunk
     Point3D center;
 
@@ -64,6 +63,7 @@ class FGScenery : public FGSubsystem {
     ssgRoot *scene_graph;
     ssgBranch *terrain_branch;
     ssgRoot *gnd_lights_root;
+    ssgRoot *vasi_lights_root;
     ssgRoot *rwy_lights_root;
     ssgRoot *taxi_lights_root;
     ssgBranch *models_branch;
@@ -74,7 +74,7 @@ public:
     FGScenery();
     ~FGScenery();
 
-    // Implementation of FGSubsystem.
+    // Implementation of SGSubsystem.
     void init ();
     void bind ();
     void unbind ();
@@ -105,6 +105,13 @@ public:
         gnd_lights_root = r;
     }
 
+    inline ssgRoot *get_vasi_lights_root () const {
+        return vasi_lights_root;
+    }
+    inline void set_vasi_lights_root (ssgRoot *r) {
+        vasi_lights_root = r;
+    }
+
     inline ssgRoot *get_rwy_lights_root () const {
         return rwy_lights_root;
     }