]> git.mxchange.org Git - flightgear.git/blob - Simulator/Cockpit/cockpit.hxx
Merge FG_Tools as subdirectory
[flightgear.git] / Simulator / Cockpit / cockpit.hxx
1 /**************************************************************************
2  * cockpit.hxx -- cockpit defines and prototypes (initial draft)
3  *
4  * Written by Michele America, started September 1997.
5  *
6  * Copyright (C) 1997  Michele F. America  - nomimarketing@mail.telepac.pt
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License as
10  * published by the Free Software Foundation; either version 2 of the
11  * License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  *
22  * $Id$
23  * (Log is kept at end of this file)
24  **************************************************************************/
25  
26
27 #ifndef _COCKPIT_HXX
28 #define _COCKPIT_HXX
29
30
31 #ifndef __cplusplus
32 # error This library requires C++
33 #endif
34
35
36 #include "hud.hxx"
37 #include "panel.hxx"
38
39 // Class fg_Cockpit          This class is a holder for the heads up display
40 //                          and is initialized with a
41 class fg_Cockpit  {
42   private:
43     int  Code;
44     int  Status;
45
46   public:
47     fg_Cockpit   () : Code(1), Status(0) {};
48     int   code  ( void ) { return Code; }
49     int   status( void ) { return Status; }
50 };
51
52
53 typedef fg_Cockpit * pCockpit;
54
55 bool fgCockpitInit( fgAIRCRAFT *cur_aircraft );
56 void fgCockpitUpdate( void );
57
58
59 #endif /* _COCKPIT_HXX */
60
61
62 /* $Log$
63 /* Revision 1.4  1998/07/13 21:00:46  curt
64 /* Integrated Charlies latest HUD updates.
65 /* Wrote access functions for current fgOPTIONS.
66 /*
67  * Revision 1.3  1998/06/27 16:47:54  curt
68  * Incorporated Friedemann Reinhard's <mpt218@faupt212.physik.uni-erlangen.de>
69  * first pass at an isntrument panel.
70  *
71  * Revision 1.2  1998/05/11 18:13:10  curt
72  * Complete C++ rewrite of all cockpit code by Charlie Hotchkiss.
73  *
74  * Revision 1.1  1998/04/24 00:45:55  curt
75  * C++-ifing the code a bit.
76  *
77  * Revision 1.8  1998/04/22 13:26:19  curt
78  * C++ - ifing the code a bit.
79  *
80  * Revision 1.7  1998/04/21 17:02:34  curt
81  * Prepairing for C++ integration.
82  *
83  * Revision 1.6  1998/02/07 15:29:33  curt
84  * Incorporated HUD changes and struct/typedef changes from Charlie Hotchkiss
85  * <chotchkiss@namg.us.anritsu.com>
86  *
87  * Revision 1.5  1998/01/22 02:59:29  curt
88  * Changed #ifdef FILE_H to #ifdef _FILE_H
89  *
90  * Revision 1.4  1998/01/19 19:27:01  curt
91  * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
92  * This should simplify things tremendously.
93  *
94  * Revision 1.3  1998/01/19 18:40:19  curt
95  * Tons of little changes to clean up the code and to remove fatal errors
96  * when building with the c++ compiler.
97  *
98  * Revision 1.2  1997/12/10 22:37:39  curt
99  * Prepended "fg" on the name of all global structures that didn't have it yet.
100  * i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
101  *
102  * Revision 1.1  1997/08/29 18:03:21  curt
103  * Initial revision.
104  *
105  */