Debian Codegraph @

Descent3/cockpit.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU 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, see <http://www.gnu.org/licenses/>.
17
18 --- HISTORICAL COMMENTS FOLLOW ---
19
20 * $Logfile: /DescentIII/main/cockpit.h $
21 * $Revision: 10 $
22 * $Date: 10/20/98 12:42p $
23 * $Author: Matt $
24 *
25 * cockpit code
26 *
27 * $Log: /DescentIII/main/cockpit.h $
28 *
29 * 10 10/20/98 12:42p Matt
30 * Made the small views work on the cockpit.
31 *
32 * 9 8/18/98 1:11a Samir
33 * fixed some stuff for multi cockpit configs.
34 *
35 * 8 5/26/98 5:05p Samir
36 * cockpit and hud config file now 'unified'. cockpit adds to hudconfig
37 * load's funtionality, so cockpit info files can contain same syntax as
38 * hud file.
39 *
40 * 7 5/14/98 7:40p Samir
41 * shaking cockpit.
42 *
43 * 6 5/05/98 6:27p Samir
44 * function that tells the cockpit system that it was resized
45 *
46 * 5 5/01/98 4:24p Samir
47 * added function to quickly open the cockpit.
48 *
49 * 4 4/24/98 8:01a Samir
50 * don't pass zoom argument to Render functions.
51 *
52 * 3 3/17/98 2:37p Samir
53 * reorg of hud/gauge/cockpit dependencies.
54 *
55 * 2 3/16/98 3:30p Samir
56 * incremental checkin.
57 *
58 * 1 3/13/98 11:22a Samir
59 * initial revision.
60 *
61 * $NoKeywords: $
62 */
63
64 #ifndef COCKPIT_H
65 #define COCKPIT_Hcxx . . $ `Descent3/cockpit.h:65:9`!
66
67 #include "pstypes.h"cxx . . $ `<file>/lib/pstypes.h`/
68 #include "vecmat.h"cxx . . $ `<file>/lib/vecmat.h`/
69
70 struct poly_modelcxx . . $ poly_model#;
71 struct bsp_infocxx . . $ bsp_info#;
72
73 // renders the cockpit.
74 void RenderCockpitcxx . . $ RenderCockpit(49f6e7a06ebc5aa8).();
75
76 // initialization of cockpit information.
77 void InitCockpitcxx . . $ InitCockpit(d4f767463ce0a6b3).(int ship_index);
78
79 // Forces freeing of cockpit information
80 void FreeCockpitcxx . . $ FreeCockpit(49f6e7a06ebc5aa8).();
81
82 // check if cockpit exists
83 bool IsValidCockpitcxx . . $ IsValidCockpit(c9857a73d68e59ba).();
84
85 // forces opening of cockpit on hud
86 void OpenCockpitcxx . . $ OpenCockpit(49f6e7a06ebc5aa8).();
87
88 // forces closing of cockpit on hud.
89 void CloseCockpitcxx . . $ CloseCockpit(49f6e7a06ebc5aa8).();
90
91 // resizes cockpit.
92 void ResizeCockpitcxx . . $ ResizeCockpit(49f6e7a06ebc5aa8).();
93
94 // forces quick open of cockpit
95 void QuickOpenCockpitcxx . . $ QuickOpenCockpit(49f6e7a06ebc5aa8).();
96
97 // forces quick closing of cockpit
98 void QuickCloseCockpitcxx . . $ QuickCloseCockpit(49f6e7a06ebc5aa8).();
99
100 // returns the submodel number of the monitor requested
101 bsp_infocxx . . $ bsp_info# *CockpitGetMonitorSubmodelcxx . . $ CockpitGetMonitorSubmodel(d37280b5e58b1a7c).(uint16_tcxx . . $ uint16_t# monitor_flag);
102
103 // returns the polymodel for the hud
104 poly_modelcxx . . $ poly_model# *CockpitGetPolyModelcxx . . $ CockpitGetPolyModel(4cb3338b82435ee4).();
105
106 // cockpit effects.
107 void StartCockpitShakecxx . . $ StartCockpitShake(d446077cab678e8d).(float mag, vectorcxx . . $ vector# *vec);
108
109 #define COCKPIT_STATE_DORMANTcxx . . $ `Descent3/cockpit.h:109:9`! 0
110 #define COCKPIT_STATE_QUASIcxx . . $ `Descent3/cockpit.h:110:9`! 1 // state changing
111 #define COCKPIT_STATE_FUNCTIONALcxx . . $ `Descent3/cockpit.h:111:9`! 2
112
113 // Tell whether the cockpit is animating
114 int CockpitStatecxx . . $ CockpitState(b126dc7c1de90089).();
115
116 #endif