class SGEphemeris;
class SGCommandMgr;
-class SGMagVar;
class SGMaterialLib;
class SGPropertyNode;
class SGTime;
class SGSubsystem;
class SGSoundMgr;
-class FGATCMgr;
+class FGATISMgr;
class FGAircraftModel;
class FGControls;
class FGFlightPlanDispatcher;
class FGModelMgr;
class FGRouteMgr;
class FGScenery;
-class FGPanel;
class FGTileMgr;
class FGViewMgr;
class FGViewer;
// Root of FlightGear data tree
std::string fg_root;
+ // Users home directory for data
+ std::string fg_home;
+
// Roots of FlightGear scenery tree
string_list fg_scenery;
// Sky structures
SGEphemeris *ephem;
- // Magnetic Variation
- SGMagVar *mag;
-
// Material properties library
SGMaterialLib *matlib;
// Global autopilot "route"
FGRouteMgr *route_mgr;
- // 2D panel
- SGSharedPtr<FGPanel> current_panel;
-
// ATC manager
- FGATCMgr *ATC_mgr;
+ FGATISMgr *ATIS_mgr;
// control input state
FGControls *controls;
inline const std::string &get_fg_root () const { return fg_root; }
void set_fg_root (const std::string &root);
+ inline const std::string &get_fg_home () const { return fg_home; }
+ void set_fg_home (const std::string &home);
+
inline const string_list &get_fg_scenery () const { return fg_scenery; }
void append_fg_scenery (const std::string &scenery);
*/
SGPath resolve_maybe_aircraft_path(const std::string& branch) const;
+ /**
+ * Search in the following directories:
+ *
+ * 1. Root directory of current aircraft (defined by /sim/aircraft-dir)
+ * 2. All aircraft directories if branch starts with Aircraft/
+ * 3. fg_data directory
+ */
+ SGPath resolve_ressource_path(const std::string& branch) const;
+
inline const std::string &get_browser () const { return browser; }
void set_browser (const std::string &b) { browser = b; }
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; }
-
inline SGMaterialLib *get_matlib() const { return matlib; }
inline void set_matlib( SGMaterialLib *m ) { matlib = m; }
- inline FGATCMgr *get_ATC_mgr() const { return ATC_mgr; }
- inline void set_ATC_mgr( FGATCMgr *a ) {ATC_mgr = a; }
-
- inline FGPanel *get_current_panel() const { return current_panel; }
- void set_current_panel( FGPanel *cp );
+ inline FGATISMgr *get_ATIS_mgr() const { return ATIS_mgr; }
+ inline void set_ATIS_mgr( FGATISMgr *a ) {ATIS_mgr = a; }
inline FGControls *get_controls() const { return controls; }
inline void set_controls( FGControls *c ) { controls = c; }
acmodel = model;
}
- const SGGeod & get_aircraft_position() const;
+ SGGeod get_aircraft_position() const;
SGVec3d get_aircraft_positon_cart() const;