]> git.mxchange.org Git - flightgear.git/blob - src/ATC/atc_mgr.hxx
Assigned an ATC controller to the user's Aircraft and change the comm1 radio frequenc...
[flightgear.git] / src / ATC / atc_mgr.hxx
1 /* -*- Mode: C++ -*- *****************************************************
2  * atic.hxx
3  * Written by Durk Talsma. Started August 1, 2010; based on earlier work
4  * by David C. Luff
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of the
9  * License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
19  *
20  *
21  **************************************************************************/
22
23 /**************************************************************************
24  * The ATC Manager interfaces the users aircraft with the AI traffic system
25  * and also monitors the ongoing AI traffic patterns for potential conflicts
26  * and interferes where necessary. 
27  *************************************************************************/ 
28
29 #ifndef _ATC_MGR_HXX_
30 #define _ATC_MGR_HXX_
31
32 //#include <simgear/structure/SGReferenced.hxx>
33 //#include <simgear/structure/SGSharedPtr.hxx>
34 #include <simgear/structure/subsystem_mgr.hxx>
35
36
37 #include <ATC/trafficcontrol.hxx>
38 #include <ATC/atcdialog.hxx>
39 //class FGATCController;
40
41
42 typedef vector<FGATCController*> AtcVec;
43 typedef vector<FGATCController*>::iterator AtcVecIterator;
44
45 class FGATCManager : public SGSubsystem
46 {
47 private:
48   AtcVec activeStations;
49   FGATCController *controller; // The ATC controller that is responsible for the user's aircraft. 
50   //FGATCDialogNew dialog;  // note that this variable should really replace the ugly global "currentATCDialog();
51
52 public:
53   FGATCManager();
54   ~FGATCManager();
55   void init();
56   void addController(FGATCController *controller);
57   void update(double time);
58 };
59   
60 #endif // _ATC_MRG_HXX_