Debian Codegraph @

editor/RobotEditWeaponsDialog.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
19 #if !defined(AFX_ROBOTEDITWEAPONSDIALOG_H__2878E6E1_1A46_11D1_97A6_004095AA4FAE__INCLUDED_)
20 #define AFX_ROBOTEDITWEAPONSDIALOG_H__2878E6E1_1A46_11D1_97A6_004095AA4FAE__INCLUDED_
21
22 #if _MSC_VER >= 1000
23 #pragma once
24 #endif // _MSC_VER >= 1000
25 // RobotEditWeaponsDialog.h : header file
26 //
27
28 #include "object.h"
29 #include "polymodel.h"
30 #include "objinfo.h"
31 #include "robotfirestruct.h"
32
33 /////////////////////////////////////////////////////////////////////////////
34 // RobotEditWeaponsDialog dialog
35
36 class RobotEditWeaponsDialog : public CDialog {
37 private:
38 void NewWBSelected(void);
39
40 // Construction
41 public:
42 RobotEditWeaponsDialog(otype_wb_info static_wb[], poly_model *pm, CWnd *pParent = NULL); // standard constructor
43 void GetData(void);
44
45 // Dialog Data
46 //{{AFX_DATA(RobotEditWeaponsDialog)
47 enum { IDD = IDD_ROBOT_WEAPON_DIALOG };
48 CString m_current_gb;
49 float m_mask_latency_0;
50 float m_mask_latency_1;
51 float m_mask_latency_2;
52 float m_mask_latency_3;
53 float m_mask_latency_4;
54 float m_mask_latency_5;
55 float m_mask_latency_6;
56 float m_mask_latency_7;
57 UINT m_num_masks;
58 float m_turret_speed;
59 CString m_total_gb_text;
60 CString m_total_gp_text;
61 CString m_num_turrets_text;
62 BOOL m_gp77;
63 BOOL m_gp76;
64 BOOL m_gp75;
65 BOOL m_gp74;
66 BOOL m_gp73;
67 BOOL m_gp72;
68 BOOL m_gp71;
69 BOOL m_gp70;
70 BOOL m_gp67;
71 BOOL m_gp66;
72 BOOL m_gp65;
73 BOOL m_gp64;
74 BOOL m_gp63;
75 BOOL m_gp62;
76 BOOL m_gp61;
77 BOOL m_gp60;
78 BOOL m_gp56;
79 BOOL m_gp57;
80 BOOL m_gp55;
81 BOOL m_gp54;
82 BOOL m_gp53;
83 BOOL m_gp52;
84 BOOL m_gp51;
85 BOOL m_gp50;
86 BOOL m_gp47;
87 BOOL m_gp46;
88 BOOL m_gp45;
89 BOOL m_gp44;
90 BOOL m_gp43;
91 BOOL m_gp42;
92 BOOL m_gp41;
93 BOOL m_gp40;
94 BOOL m_gp37;
95 BOOL m_gp36;
96 BOOL m_gp35;
97 BOOL m_gp34;
98 BOOL m_gp33;
99 BOOL m_gp32;
100 BOOL m_gp31;
101 BOOL m_gp30;
102 BOOL m_gp27;
103 BOOL m_gp26;
104 BOOL m_gp25;
105 BOOL m_gp24;
106 BOOL m_gp23;
107 BOOL m_gp22;
108 BOOL m_gp21;
109 BOOL m_gp20;
110 BOOL m_gp17;
111 BOOL m_gp16;
112 BOOL m_gp15;
113 BOOL m_gp14;
114 BOOL m_gp13;
115 BOOL m_gp12;
116 BOOL m_gp11;
117 BOOL m_gp10;
118 BOOL m_gp07;
119 BOOL m_gp06;
120 BOOL m_gp05;
121 BOOL m_gp04;
122 BOOL m_gp03;
123 BOOL m_gp02;
124 BOOL m_gp01;
125 BOOL m_gp00;
126 float m_reaction_time;
127 CString m_turret_reaction_time_text;
128 CString m_turret_fov_text;
129 CString m_turret_spr_text;
130 CString m_current_turret_combo;
131 CString m_turret_sobj_text;
132 float m_view_cone_angle;
133 float m_max_distance;
134 float m_xz_plane_angle;
135 CString m_weapon_0_text;
136 CString m_weapon_1_text;
137 CString m_weapon_2_text;
138 CString m_weapon_4_text;
139 CString m_weapon_3_text;
140 CString m_weapon_5_text;
141 CString m_weapon_6_text;
142 CString m_weapon_7_text;
143 CString m_fire_sound_0_text;
144 CString m_fire_sound_1_text;
145 CString m_fire_sound_2_text;
146 CString m_fire_sound_3_text;
147 CString m_fire_sound_4_text;
148 CString m_fire_sound_5_text;
149 CString m_fire_sound_6_text;
150 CString m_fire_sound_7_text;
151 float m_energy_usage;
152 float m_ammo_usage;
153 BOOL m_spray_check;
154 float m_fire0_cycle_time;
155 float m_fire1_cycle_time;
156 float m_fire2_cycle_time;
157 float m_fire3_cycle_time;
158 float m_fire4_cycle_time;
159 float m_fire5_cycle_time;
160 float m_fire6_cycle_time;
161 float m_fire7_cycle_time;
162 float m_fire0_end_tick;
163 float m_fire1_end_tick;
164 float m_fire2_end_tick;
165 float m_fire3_end_tick;
166 float m_fire4_end_tick;
167 float m_fire5_end_tick;
168 float m_fire6_end_tick;
169 float m_fire7_end_tick;
170 float m_fire0_fire_tick;
171 float m_fire1_fire_tick;
172 float m_fire2_fire_tick;
173 float m_fire3_fire_tick;
174 float m_fire4_fire_tick;
175 float m_fire5_fire_tick;
176 float m_fire6_fire_tick;
177 float m_fire7_fire_tick;
178 float m_fire0_start_tick;
179 float m_fire1_start_tick;
180 float m_fire2_start_tick;
181 float m_fire3_start_tick;
182 float m_fire4_start_tick;
183 float m_fire5_start_tick;
184 float m_fire6_start_tick;
185 float m_fire7_start_tick;
186 BOOL m_random_check;
187 BOOL m_guided;
188 BOOL m_gpq0;
189 BOOL m_gpq1;
190 BOOL m_gpq2;
191 BOOL m_gpq3;
192 BOOL m_gpq4;
193 BOOL m_gpq5;
194 BOOL m_gpq6;
195 BOOL m_gpq7;
196 BOOL m_custom_view_cone_check;
197 BOOL m_onoff_check;
198 BOOL m_custom_max_dist;
199 BOOL m_user_timeout;
200 BOOL m_force_fvec_check;
201 BOOL m_aim_fvec_check;
202 BOOL m_force_target_check;
203 //}}AFX_DATA
204
205 int m_current_wb_index;
206 int m_current_turret_index;
207 int m_current_aiming_point;
208
209 int m_anim_type;
210
211 otype_wb_info *m_obj_static_wb;
212 poly_model *m_obj_pm;
213
214 // Copy all necessary data
215 void GetWBData(object_info *obj_info);
216 void UpdateDialog();
217 void UpdateTurretInfo();
218
219 // Overrides
220 // ClassWizard generated virtual function overrides
221 //{{AFX_VIRTUAL(RobotEditWeaponsDialog)
222 protected:
223 virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support
224 //}}AFX_VIRTUAL
225
226 // Implementation
227 protected:
228 // Generated message map functions
229 //{{AFX_MSG(RobotEditWeaponsDialog)
230 virtual BOOL OnInitDialog();
231 afx_msg void OnKillfocusGbNumMasksEdit();
232 afx_msg void OnSelendokCurretTurretCombo();
233 afx_msg void OnSelendokCurrentGbCombo();
234 //}}AFX_MSG
235 DECLARE_MESSAGE_MAP()
236 };
237
238 //{{AFX_INSERT_LOCATION}}
239 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
240
241 #endif // !defined(AFX_ROBOTEDITWEAPONSDIALOG_H__2878E6E1_1A46_11D1_97A6_004095AA4FAE__INCLUDED_)