]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/AIMgr.hxx
More stuff to make the AI/ATC system less hardwired and more generic. Most of the...
[flightgear.git] / src / ATC / AIMgr.hxx
index 35276aeaedd5c14776f5615a7f0c4f673f9f5ff5..8b002744fc4c023318a6b399b907d60ad77669cb 100644 (file)
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-/*****************************************************************
-*
-* WARNING - Curt has some ideas about AI traffic so anything in here
-* may get rewritten or scrapped.  Contact Curt curt@flightgear.org 
-* before spending any time or effort on this code!!!
-*
-******************************************************************/
-
 #ifndef _FG_AIMGR_HXX
 #define _FG_AIMGR_HXX
 
 
 #include <list>
 
+#include "ATCMgr.hxx"
 #include "AIEntity.hxx"
 
 SG_USING_STD(list);
 
+
 class FGAIMgr : public FGSubsystem
 {
 
 private:
+       FGATCMgr* ATC;  
+       // This is purely for synactic convienience to avoid writing globals->get_ATC_mgr()-> all through the code!
 
     // A list of pointers to all currently active AI stuff
     typedef list <FGAIEntity*> ai_list_type;
@@ -56,6 +52,11 @@ private:
     // Any member function of FGATCMgr is permitted to leave this iterator pointing
     // at any point in or at the end of the list.
     // Hence any new access must explicitly first check for atc_list.end() before dereferencing.
+       
+       // A map of airport-IDs that have taxiway network files against bucket number
+       typedef map < int, string > ai_apt_map_type;
+       typedef ai_apt_map_type::iterator ai_apt_map_iterator;
+       ai_apt_map_type airports;
 
     // Position of the Users Aircraft
     // (This may be needed to calculate the distance from the user when deciding which 3D model to render)