]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/globals.hxx
Added code to put aircraft at the end of the runway closest to the desired
[flightgear.git] / src / Main / globals.hxx
index bc225f998a19de4647ce11b137cd7c1c9097e055..ebe8a8262bab841edee1c01f680ae96075e2a917 100644 (file)
@@ -26,6 +26,7 @@
 
 
 #include <simgear/ephemeris/ephemeris.hxx>
+#include <simgear/magvar/magvar.hxx>
 #include <simgear/timing/sg_time.hxx>
 
 
@@ -50,13 +51,16 @@ private:
     // Sky structures
     SGEphemeris *ephem;
 
+    // Magnetic Variation
+    SGMagVar *mag;
+
 public:
 
     FGGlobals();
     ~FGGlobals();
 
-    inline bool get_frozen() const { return freeze; }
-    inline void toggle_frozen() { freeze = !freeze; }
+    inline bool get_freeze() const { return freeze; }
+    inline void set_freeze( bool f ) { freeze = f; }
 
     inline long int get_warp() const { return warp; }
     inline void set_warp( long int w ) { warp = w; }
@@ -71,6 +75,9 @@ public:
 
     inline SGEphemeris *get_ephem() const { return ephem; }
     inline void set_ephem( SGEphemeris *e ) { ephem = e; }
+
+    inline SGMagVar *get_mag() const { return mag; }
+    inline void set_mag( SGMagVar *m ) { mag = m; }
 };