]> git.mxchange.org Git - flightgear.git/commitdiff
- added an instance of SGCommandMgr
authorcurt <curt>
Fri, 1 Jun 2001 17:52:50 +0000 (17:52 +0000)
committercurt <curt>
Fri, 1 Jun 2001 17:52:50 +0000 (17:52 +0000)
- added a get_commands() method

src/Main/globals.hxx

index 48169748c8d049d83add083f82d78eece81c24a4..8b5e9e6f718462b958ab9436630b1bfb0a966517 100644 (file)
@@ -34,6 +34,7 @@
 #include <simgear/magvar/magvar.hxx>
 #include <simgear/route/route.hxx>
 #include <simgear/timing/sg_time.hxx>
+#include <simgear/misc/commands.hxx>
 #include <simgear/misc/props.hxx>
 
 #include <Sound/soundmgr.hxx>
@@ -89,6 +90,8 @@ private:
     SGPropertyNode *props;
     SGPropertyNode *initial_state;
 
+    SGCommandMgr *commands;
+
     // list of serial port-like configurations
     string_list *channel_options_list;
 
@@ -139,6 +142,8 @@ public:
     inline SGPropertyNode *get_props () { return props; }
     inline void set_props( SGPropertyNode *n ) { props = n; }
 
+    inline SGCommandMgr *get_commands () { return commands; }
+
     inline string_list *get_channel_options_list () {
        return channel_options_list;
     }