1
0
Fork 0

- use guarded property pointers

- reduce header usage
- make headers not depend on *.cxx files
This commit is contained in:
mfranz 2006-04-17 17:08:58 +00:00
parent 2e7cab820b
commit 15a8e965f3
10 changed files with 38 additions and 39 deletions

View file

@ -23,24 +23,20 @@
# include <config.h> # include <config.h>
#endif #endif
//#include <simgear/scene/model/location.hxx>
#include <Airports/runways.hxx> #include <Airports/runways.hxx>
#include <Main/globals.hxx> #include <Main/globals.hxx>
//#include <Scenery/scenery.hxx>
//#include <Scenery/tilemgr.hxx>
#include <simgear/math/point3d.hxx> #include <simgear/math/point3d.hxx>
//#include <simgear/math/sg_geodesy.hxx>
//#include <simgear/misc/sg_path.hxx>
#include <string> #include <string>
#include <math.h> #include <math.h>
SG_USING_STD(string); SG_USING_STD(string);
#include "ATC.hxx"
#include "ATCmgr.hxx" #include "ATCmgr.hxx"
#include "AILocalTraffic.hxx" #include "AILocalTraffic.hxx"
#include "AIGAVFRTraffic.hxx" #include "AIGAVFRTraffic.hxx"
#include "ATCutils.hxx" #include "ATCutils.hxx"
#include "tower.hxx"
FGAIGAVFRTraffic::FGAIGAVFRTraffic() { FGAIGAVFRTraffic::FGAIGAVFRTraffic() {
ATC = globals->get_ATC_mgr(); ATC = globals->get_ATC_mgr();

View file

@ -25,10 +25,6 @@
#include <simgear/math/point3d.hxx> #include <simgear/math/point3d.hxx>
#include <Main/fg_props.hxx> #include <Main/fg_props.hxx>
#include "tower.hxx"
#include "AIPlane.hxx"
#include "ATCProjection.hxx"
#include "ground.hxx"
#include "AILocalTraffic.hxx" #include "AILocalTraffic.hxx"
#include <string> #include <string>

View file

@ -25,11 +25,14 @@
#include <simgear/math/point3d.hxx> #include <simgear/math/point3d.hxx>
#include <Main/fg_props.hxx> #include <Main/fg_props.hxx>
#include "tower.hxx"
#include "AIPlane.hxx" #include "AIPlane.hxx"
#include "ATCProjection.hxx" #include "ATCProjection.hxx"
#include "ground.hxx" #include "ground.hxx"
class FGGround;
class FGTower;
class Gate;
#include <string> #include <string>
SG_USING_STD(string); SG_USING_STD(string);

View file

@ -39,10 +39,8 @@
#include <Airports/simple.hxx> #include <Airports/simple.hxx>
#include <sstream> #include <sstream>
#include <map>
SG_USING_STD(ostringstream); SG_USING_STD(ostringstream);
SG_USING_STD(map);
FGATCDialog *current_atcdialog; FGATCDialog *current_atcdialog;

View file

@ -23,8 +23,14 @@
#include <simgear/compiler.h> #include <simgear/compiler.h>
#include <vector>
#include <map>
#include "ATC.hxx" #include "ATC.hxx"
SG_USING_STD(vector);
SG_USING_STD(map);
class NewGUI; class NewGUI;
// ATCMenuEntry - an encapsulation of an entry in the ATC dialog // ATCMenuEntry - an encapsulation of an entry in the ATC dialog

View file

@ -25,11 +25,15 @@
#include <simgear/misc/sg_path.hxx> #include <simgear/misc/sg_path.hxx>
#include <simgear/debug/logstream.hxx> #include <simgear/debug/logstream.hxx>
#include <Airports/simple.hxx> #include <Airports/simple.hxx>
#include "ATCmgr.hxx" #include "ATCmgr.hxx"
#include "commlist.hxx" #include "commlist.hxx"
#include "ATCdisplay.hxx" #include "ATCdisplay.hxx"
#include "ATCDialog.hxx" #include "ATCDialog.hxx"
#include "ATCutils.hxx" #include "ATCutils.hxx"
#include "transmissionlist.hxx"
#include "ground.hxx"
/* /*
// periodic radio station search wrapper // periodic radio station search wrapper

View file

@ -31,13 +31,8 @@
#include <list> #include <list>
#include <map> #include <map>
#include "atis.hxx"
#include "tower.hxx" #include "tower.hxx"
#include "approach.hxx" #include "approach.hxx"
#include "ground.hxx"
#include "ATC.hxx"
#include "ATCVoice.hxx"
#include "transmissionlist.hxx"
SG_USING_STD(string); SG_USING_STD(string);
SG_USING_STD(list); SG_USING_STD(list);

View file

@ -33,10 +33,10 @@
#include STL_FSTREAM #include STL_FSTREAM
#include "ground.hxx" #include "ground.hxx"
#include "ATCmgr.hxx"
#include "ATCutils.hxx"
#include "ATCdisplay.hxx" #include "ATCdisplay.hxx"
#include "ATCutils.hxx"
#include "AILocalTraffic.hxx" #include "AILocalTraffic.hxx"
#include "ATCmgr.hxx"
SG_USING_STD(ifstream); SG_USING_STD(ifstream);
SG_USING_STD(cout); SG_USING_STD(cout);

View file

@ -21,29 +21,31 @@
#ifndef _FG_GROUND_HXX #ifndef _FG_GROUND_HXX
#define _FG_GROUND_HXX #define _FG_GROUND_HXX
#include <map>
#include <vector>
#include <list>
#include <simgear/math/point3d.hxx>
#include <simgear/misc/sgstream.hxx>
#include <simgear/math/sg_geodesy.hxx>
#include <simgear/props/props.hxx>
#include "ATC.hxx"
#include "ATCProjection.hxx"
#include STL_IOSTREAM #include STL_IOSTREAM
#include STL_STRING #include STL_STRING
SG_USING_STD(string); SG_USING_STD(string);
SG_USING_STD(ios); SG_USING_STD(ios);
#include <map>
#include <vector>
#include <list>
#include <simgear/math/point3d.hxx>
#include <simgear/misc/sgstream.hxx>
#include <simgear/math/sg_geodesy.hxx>
#include "ATC.hxx"
//#include "ATCmgr.hxx"
#include "ATCProjection.hxx"
#include "AIEntity.hxx"
//#include "AILocalTraffic.hxx" // RunwayDetails - this is a temporary hack
SG_USING_STD(map); SG_USING_STD(map);
SG_USING_STD(vector); SG_USING_STD(vector);
SG_USING_STD(list); SG_USING_STD(list);
class FGAIEntity;
class FGATCMgr;
////////////////////////////////////////////////////// //////////////////////////////////////////////////////
// Types for the logical network data structure // Types for the logical network data structure
enum arc_type { enum arc_type {
@ -308,8 +310,8 @@ private:
//NextClearance(ground_rec &g); //NextClearance(ground_rec &g);
// environment - need to make sure we're getting the surface winds and not winds aloft. // environment - need to make sure we're getting the surface winds and not winds aloft.
SGPropertyNode* wind_from_hdg; //degrees SGPropertyNode_ptr wind_from_hdg; //degrees
SGPropertyNode* wind_speed_knots; //knots SGPropertyNode_ptr wind_speed_knots; //knots
// for failure modeling // for failure modeling
string trans_ident; // transmitted ident string trans_ident; // transmitted ident

View file

@ -24,9 +24,7 @@
#include <simgear/compiler.h> #include <simgear/compiler.h>
#include <simgear/math/point3d.hxx> #include <simgear/math/point3d.hxx>
#include <simgear/misc/sgstream.hxx> #include <simgear/misc/sgstream.hxx>
//#include <simgear/math/sg_geodesy.hxx>
#include <plib/sg.h> #include <plib/sg.h>
//#include <Airports/runways.hxx>
#include STL_IOSTREAM #include STL_IOSTREAM
#include STL_STRING #include STL_STRING
@ -35,11 +33,12 @@ SG_USING_STD(string);
SG_USING_STD(ios); SG_USING_STD(ios);
#include "ATC.hxx" #include "ATC.hxx"
//#include "ATCmgr.hxx"
#include "ground.hxx"
#include "ATCProjection.hxx" #include "ATCProjection.hxx"
#include "AIPlane.hxx" #include "AIPlane.hxx"
class FGATCMgr;
class FGGround;
//DCL - a complete guess for now. //DCL - a complete guess for now.
#define FG_TOWER_DEFAULT_RANGE 30 #define FG_TOWER_DEFAULT_RANGE 30