1 /* -*- Mode: C++ -*- *****************************************************
3 * Written by Durk Talsma. Started August 1, 2010; based on earlier work
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.
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.
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.
21 **************************************************************************/
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 *************************************************************************/
32 //#include <simgear/structure/SGReferenced.hxx>
33 //#include <simgear/structure/SGSharedPtr.hxx>
34 #include <simgear/structure/subsystem_mgr.hxx>
37 #include <ATC/trafficcontrol.hxx>
38 #include <ATC/atcdialog.hxx>
40 #include <AIModel/AIAircraft.hxx>
41 //class FGATCController;
44 typedef vector<FGATCController*> AtcVec;
45 typedef vector<FGATCController*>::iterator AtcVecIterator;
47 class FGATCManager : public SGSubsystem
50 AtcVec activeStations;
52 FGATCController *controller, *prevController; // The ATC controller that is responsible for the user's aircraft.
55 SGPropertyNode_ptr trans_num;
61 void addController(FGATCController *controller);
62 void update(double time);
65 #endif // _ATC_MRG_HXX_