]> git.mxchange.org Git - flightgear.git/blob - Simulator/Cockpit/cockpit.hxx
Initial revision
[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.1  1999/04/05 21:32:48  curt
64 /* Initial revision
65 /*
66  * Revision 1.4  1998/07/13 21:00:46  curt
67  * Integrated Charlies latest HUD updates.
68  * Wrote access functions for current fgOPTIONS.
69  *
70  * Revision 1.3  1998/06/27 16:47:54  curt
71  * Incorporated Friedemann Reinhard's <mpt218@faupt212.physik.uni-erlangen.de>
72  * first pass at an isntrument panel.
73  *
74  * Revision 1.2  1998/05/11 18:13:10  curt
75  * Complete C++ rewrite of all cockpit code by Charlie Hotchkiss.
76  *
77  * Revision 1.1  1998/04/24 00:45:55  curt
78  * C++-ifing the code a bit.
79  *
80  * Revision 1.8  1998/04/22 13:26:19  curt
81  * C++ - ifing the code a bit.
82  *
83  * Revision 1.7  1998/04/21 17:02:34  curt
84  * Prepairing for C++ integration.
85  *
86  * Revision 1.6  1998/02/07 15:29:33  curt
87  * Incorporated HUD changes and struct/typedef changes from Charlie Hotchkiss
88  * <chotchkiss@namg.us.anritsu.com>
89  *
90  * Revision 1.5  1998/01/22 02:59:29  curt
91  * Changed #ifdef FILE_H to #ifdef _FILE_H
92  *
93  * Revision 1.4  1998/01/19 19:27:01  curt
94  * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
95  * This should simplify things tremendously.
96  *
97  * Revision 1.3  1998/01/19 18:40:19  curt
98  * Tons of little changes to clean up the code and to remove fatal errors
99  * when building with the c++ compiler.
100  *
101  * Revision 1.2  1997/12/10 22:37:39  curt
102  * Prepended "fg" on the name of all global structures that didn't have it yet.
103  * i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
104  *
105  * Revision 1.1  1997/08/29 18:03:21  curt
106  * Initial revision.
107  *
108  */