]> git.mxchange.org Git - flightgear.git/blob - Simulator/Cockpit/cockpit.hxx
Initial revision.
[flightgear.git] / Simulator / Cockpit / cockpit.hxx
1 // cockpit.hxx -- cockpit defines and prototypes (initial draft)
2 //
3 // Written by Michele America, started September 1997.
4 //
5 // Copyright (C) 1997  Michele F. America  - nomimarketing@mail.telepac.pt
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License as
9 // published by the Free Software Foundation; either version 2 of the
10 // License, or (at your option) any later version.
11 //
12 // This program is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 // General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 //
21 // $Id$
22  
23
24 #ifndef _COCKPIT_HXX
25 #define _COCKPIT_HXX
26
27
28 #ifndef __cplusplus
29 # error This library requires C++
30 #endif
31
32
33 #include "hud.hxx"
34 #include "panel.hxx"
35
36 // Class fg_Cockpit          This class is a holder for the heads up display
37 //                           and is initialized with a
38 class fg_Cockpit  {
39   private:
40     int  Code;
41     int  Status;
42
43   public:
44     fg_Cockpit   () : Code(1), Status(0) {};
45     int   code  ( void ) { return Code; }
46     int   status( void ) { return Status; }
47 };
48
49
50 typedef fg_Cockpit * pCockpit;
51
52 bool fgCockpitInit( fgAIRCRAFT *cur_aircraft );
53 void fgCockpitUpdate( void );
54
55
56 #endif // _COCKPIT_HXX
57
58