]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/fg_init.hxx
Clean fg_init.hxx
[flightgear.git] / src / Main / fg_init.hxx
index 73a8cd7ebc330ff3d002b89b4b425848458a0c4b..1fc53a6fffa5e77a57d4d0a53f5f9e7bd68b7320 100644 (file)
 #ifndef _FG_INIT_HXX
 #define _FG_INIT_HXX
 
+#include <string>
 
-#ifndef __cplusplus                                                          
-# error This library requires C++
-#endif                                   
-
-
-#ifdef HAVE_CONFIG
-#  include <config.h>
-#endif
-
-#include <simgear/compiler.h>
-#include <simgear/timing/sg_time.hxx>
-
-#include STL_STRING
-
-#include <Airports/simple.hxx>
-
-SG_USING_STD(string);
-
+// forward decls
+class SGPropertyNode;
+class SGTime;
 
 // Read in configuration (files and command line optoins) but only set
 // fg_root
@@ -51,7 +37,7 @@ bool fgInitFGRoot ( int argc, char **argv );
 
 
 // Return the current base package version
-string fgBasePackageVersion();
+std::string fgBasePackageVersion();
 
 
 // Read in configuration (file and command line)
@@ -83,6 +69,11 @@ void fgReInitSubsystems();
 // Set the initial position based on presets (or defaults)
 bool fgInitPosition();
 
+
+// Listen to /sim/tower/airport-id and set tower view position accordingly
+void fgInitTowerLocationListener();
+
+
 // Initialize various time dependent systems (lighting, sun position, etc.)
 // returns a new instance of the SGTime class
 SGTime *fgInitTime();