2 // fg_init.hxx -- Flight Gear top level initialization routines
4 // Written by Curtis Olson, started August 1997.
6 // Copyright (C) 1997 Curtis L. Olson - curt@infoplane.com
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License as
10 // published by the Free Software Foundation; either version 2 of the
11 // License, or (at your option) any later version.
13 // This program is distributed in the hope that it will be useful, but
14 // WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
30 # error This library requires C++
38 #include <simgear/compiler.h>
39 #include <simgear/timing/sg_time.hxx>
43 #include <Airports/simple.hxx>
48 // Read in configuration (file and command line) and just set fg_root
49 bool fgInitFGRoot ( int argc, char **argv );
52 // Return the current base package version
53 string fgBasePackageVersion();
56 // Read in configuration (file and command line)
57 bool fgInitConfig ( int argc, char **argv );
60 // General house keeping initializations
61 bool fgInitGeneral ( void );
64 // This is the top level init routine which calls all the other
65 // initialization routines. If you are adding a subsystem to flight
66 // gear, its initialization call should located in this routine.
67 bool fgInitSubsystems( void );
71 void fgReInitSubsystems( void );
74 // find basic airport location info from airport database
75 bool fgFindAirportID( const string& id, FGAirport *a );
77 // Set pos given an airport id
78 bool fgSetPosFromAirportID( const string& id );
80 // Set tower position given an airport id
81 bool fgSetTowerPosFromAirportID( const string& id, double hdg );
83 // Set position and heading given an airport id and heading (degrees)
84 bool fgSetPosFromAirportIDandHdg( const string& id, double tgt_hdg );
86 //find altitude given glideslope and offset distance or offset distance
87 //given glideslope and altitude
88 void fgSetPosFromGlideSlope(void);
90 // Initialize various time dependent systems (lighting, sun position, etc.)
91 // returns a new instance of the SGTime class
94 #endif // _FG_INIT_HXX