]> git.mxchange.org Git - flightgear.git/blob - src/ATC/atcdialog.hxx
Start of adding interaction between the user controlled aircraft and AI traffic,...
[flightgear.git] / src / ATC / atcdialog.hxx
1 // atcdialog.hxx - classes to manage user interactions with AI traffic
2 // Written by Durk Talsma, started April 3, 2011
3 // Based on earlier code written by Alexander Kappes and David Luff
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License as
7 // published by the Free Software Foundation; either version 2 of the
8 // License, or (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful, but
11 // WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 // General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18 //
19 // $Id$
20
21
22 #ifndef _ATC_DIALOG_HXX_
23 #define _ATC_DIALOG_HXX_
24
25
26 #ifndef __cplusplus
27 # error This library requires C++
28 #endif
29
30 #include <simgear/constants.h>
31 #include <simgear/structure/commands.hxx>
32 #include <simgear/compiler.h>
33 #include <simgear/props/props.hxx>
34 #include <simgear/misc/sgstream.hxx>
35 #include <simgear/math/sg_geodesy.hxx>
36 #include <simgear/debug/logstream.hxx>
37 #include <simgear/structure/SGSharedPtr.hxx>
38
39
40 #include <GUI/gui.h>            // mkDialog
41 #include <GUI/new_gui.hxx>
42
43
44 static bool doATCDialog(const SGPropertyNode* arg);
45
46 class FGATCDialogNew {
47 private:
48      NewGUI *_gui;
49      bool dialogVisible;        
50 public:
51
52     FGATCDialogNew();
53     ~FGATCDialogNew();
54
55     void init();
56
57     void update(double dt);
58     void PopupDialog();
59 };
60
61 extern FGATCDialogNew *current_atcdialog;
62
63 #endif // _ATC_DIALOG_HXX_