0
|
1 #pragma once
|
|
2 #include "OSAPI.h"
|
|
3 #include <math.h>
|
|
4 #include <stdio.h>
|
|
5 #include <stdarg.h>
|
|
6 #include <string>
|
|
7
|
|
8 typedef unsigned int uint;
|
|
9 #define LOWORD(a) (*((unsigned short *)&a))
|
|
10 #define HIWORD(a) (*((unsigned short *)&a + 1))
|
|
11 #define SHIWORD(a) (*((short *)&a + 1))
|
|
12
|
|
13 #define LODWORD(a) (*((unsigned int *)&a))
|
|
14 #define HIDWORD(a) (*((unsigned int *)&a + 1))
|
|
15 #define SLODWORD(a) (*((int *)&a))
|
|
16 #define SHIDWORD(a) (*((int *)&a + 1))
|
|
17
|
|
18 #define LOBYTE(a) (*((unsigned char *)&a))
|
|
19 #define HIBYTE(a) (*((unsigned char *)&a + sizeof(a) - 1))
|
|
20 #define BYTE1(a) (*((unsigned char *)&a + 1))
|
|
21 #define BYTE2(a) (*((unsigned char *)&a + 2))
|
|
22 #define BYTE3(a) (*((unsigned char *)&a + 3))
|
|
23
|
|
24
|
|
25 typedef unsigned __int16 _WORD;
|
|
26 typedef unsigned __int64 _QWORD;
|
|
27
|
|
28
|
|
29 #include "VectorTypes.h"
|
|
30 #include "IndoorCameraD3D.h"
|
|
31 /*#include "LOD.h"
|
|
32 #include "Texture.h"
|
|
33 #include "Mouse.h"
|
|
34 #include "Overlays.h"
|
|
35 #include "Game.h"
|
|
36 #include "Items.h"
|
|
37 #include "Actor.h"
|
|
38 #include "Arcomage.h"
|
|
39 #include "Render.h"
|
|
40 #include "Time.h"
|
|
41 #include "GUIWindow.h"
|
|
42 #include "GUIButton.h"
|
|
43 #include "GUIProgressBar.h"
|
|
44 #include "GUIFont.h"
|
|
45 #include "NPC.h"
|
|
46 #include "PaletteManager.h"
|
|
47 #include "Party.h"
|
|
48 #include "AudioPlayer.h"
|
|
49 #include "VideoPlayer.h"
|
|
50 #include "Chest.h"
|
|
51 #include "Allocator.h"
|
|
52 #include "IndoorCamera.h"
|
|
53 #include "Party.h"
|
|
54 #include "Outdoor.h"
|
|
55
|
|
56 #include "mm7_data.h"
|
|
57 */
|
|
58
|
|
59
|
|
60
|
|
61
|
|
62
|
|
63
|
|
64
|
|
65
|
|
66
|
|
67
|
|
68
|
|
69
|
|
70
|
|
71
|
|
72
|
|
73
|
|
74
|
|
75
|
|
76
|
|
77
|
|
78
|
|
79
|
|
80
|
|
81
|
|
82
|
|
83
|
|
84
|
|
85
|
|
86
|
|
87
|
|
88
|
|
89
|
|
90
|
|
91
|
|
92
|
|
93
|
|
94
|
|
95
|
|
96
|
|
97
|
|
98
|
|
99
|
|
100
|
|
101
|
|
102
|
|
103
|
|
104
|
|
105
|
|
106
|
|
107
|
|
108
|
|
109
|
|
110
|
|
111
|
|
112
|
|
113
|
|
114
|
|
115
|
|
116
|
|
117
|
|
118
|
|
119
|
|
120
|
|
121 /* 154 */
|
|
122 #pragma pack(push, 1)
|
|
123 struct stru161
|
|
124 {
|
|
125 Vec3_int_ pos;
|
|
126 __int16 rot_y;
|
|
127 __int16 rot_x;
|
|
128 unsigned __int16 uMapInfoID;
|
|
129 __int16 field_12;
|
|
130 };
|
|
131 #pragma pack(pop)
|
|
132 extern stru161 stru_4ECBB8[6]; // weak
|
|
133
|
|
134
|
|
135
|
|
136
|
|
137
|
|
138
|
|
139
|
|
140
|
|
141
|
|
142
|
|
143
|
|
144
|
|
145
|
|
146
|
|
147
|
|
148
|
|
149
|
|
150
|
|
151
|
|
152
|
|
153
|
|
154
|
|
155
|
|
156
|
|
157
|
|
158
|
|
159
|
|
160
|
|
161
|
|
162
|
|
163
|
|
164
|
|
165
|
|
166
|
|
167
|
|
168
|
|
169
|
|
170
|
|
171
|
|
172 /* 285 */
|
|
173 #pragma pack(push, 1)
|
|
174 struct stru289
|
|
175 {
|
|
176 //----- (0046263C) --------------------------------------------------------
|
|
177 inline stru289()
|
|
178 {
|
|
179 this->field_64 = 2;
|
|
180 this->field_74 = 0;
|
|
181 this->field_70 = 0;
|
|
182 this->field_6C = 0;
|
|
183 this->field_68 = 0;
|
|
184 }
|
|
185
|
|
186
|
|
187 char field_0[100];
|
|
188 int field_64;
|
|
189 int field_68;
|
|
190 int field_6C;
|
|
191 int field_70;
|
|
192 int field_74;
|
|
193 };
|
|
194 #pragma pack(pop)
|
|
195 extern stru289 stru_6BE158;
|
|
196
|
|
197
|
|
198
|
|
199 /* 288 */
|
|
200 #pragma pack(push, 1)
|
|
201 struct CheckHRESULT_stru0
|
|
202 {
|
|
203 void CheckHRESULT(HRESULT a2, const char *Str, int a4, unsigned int uType);
|
|
204 void *_466D09_xcpt_string(std::string a2, const char *Str, int a4);
|
|
205 void ShowMessageBox(std::string *a0, std::string lpCaption, UINT uType, std::string lpText, int line);
|
|
206 char ddraw_error(HRESULT hr, char *Str, size_t a3);
|
|
207 char dinput_error(int a1, const char *Str, int a3);
|
|
208
|
|
209 void (__thiscall ***vdestructor_ptr)(CheckHRESULT_stru0 *, bool);
|
|
210 };
|
|
211 #pragma pack(pop)
|
|
212
|
|
213
|
|
214
|
|
215
|
|
216 /* 297 */
|
|
217 enum SoundType
|
|
218 {
|
|
219 SOUND_EndTurnBasedMode = 0xCE,
|
|
220 SOUND_StartTurnBasedMode = 0xCF,
|
|
221 SOUND_FlipOnExit = 0x4E21,
|
|
222 };
|
|
223
|
|
224
|
|
225
|
|
226
|
|
227
|
|
228
|
|
229
|
|
230
|
|
231
|
|
232
|
|
233
|
|
234
|
|
235
|
|
236
|
|
237
|
|
238
|
|
239
|
|
240
|
|
241
|
|
242
|
|
243
|
|
244
|
|
245 /* 349 */
|
|
246 enum HOUSE_TYPE
|
|
247 {
|
341
|
248 HOUSE_BODY_GUILD_NOVICE_EMERALD_ISLE = 163,
|
|
249 HOUSE_186 = 186,
|
|
250 HOUSE_JAIL = 187,
|
|
251 HOUSE_600 = 600,
|
|
252 HOUSE_601 = 601
|
0
|
253 };
|
|
254
|
|
255
|
|
256
|
|
257
|
|
258
|
|
259
|
|
260
|
|
261
|
|
262
|
|
263
|
|
264
|
|
265 /* 362 */
|
|
266 #pragma pack(push, 1)
|
|
267 struct TravelInfo
|
|
268 {
|
|
269 char uMapID;
|
|
270 char pSchedule[7];
|
|
271 char uDaysCount;
|
|
272 char field_9[3];
|
|
273 int x;
|
|
274 int y;
|
|
275 int z;
|
|
276 int direction;
|
|
277 int field_1C;
|
|
278 };
|
|
279 #pragma pack(pop)
|
|
280
|
|
281
|
|
282
|
|
283
|
|
284
|
|
285
|
|
286 /* 369 */
|
|
287 #pragma pack(push, 1)
|
299
|
288
|
0
|
289 #pragma pack(pop)
|
299
|
290 extern int paperdoll_Weapon[4][16][2];
|
0
|
291
|
|
292 /* 371 */
|
|
293 #pragma pack(push, 1)
|
|
294 struct stru331
|
|
295 {
|
|
296 int field_0;
|
|
297 int field_4;
|
|
298 int field_8;
|
|
299 int field_C;
|
|
300 int field_10;
|
|
301 int field_14;
|
|
302 int field_18;
|
|
303 int field_1C;
|
|
304 int field_20;
|
|
305 int field_24;
|
|
306 int field_28;
|
|
307 int field_2C;
|
|
308 int field_30;
|
|
309 int field_34;
|
|
310 int field_38;
|
|
311 int field_3C;
|
|
312 };
|
|
313 #pragma pack(pop)
|
|
314
|
|
315 /* 372 */
|
|
316 #pragma pack(push, 1)
|
|
317 struct stru332
|
|
318 {
|
|
319 unsigned int texids[11];
|
|
320 stru331 field_2C;
|
|
321 };
|
|
322 #pragma pack(pop)
|
|
323 extern stru332 stru_511698;
|
|
324
|
|
325
|
|
326 /* 373 */
|
|
327 #pragma pack(push, 1)
|
|
328 struct stru333
|
|
329 {
|
|
330 unsigned int texids[5];
|
|
331 unsigned int *texid1;
|
|
332 int field_18;
|
|
333 };
|
|
334 #pragma pack(pop)
|
|
335 extern stru333 stru_511718;
|
|
336
|
|
337
|
|
338 /* 374 */
|
|
339 #pragma pack(push, 1)
|
|
340 struct stru334
|
|
341 {
|
|
342 __int16 field_0;
|
|
343 __int16 field_2;
|
|
344 __int16 field_4;
|
|
345 __int16 field_6;
|
|
346 };
|
|
347 #pragma pack(pop)
|
|
348 extern stru334 array_4E2940[26];
|
|
349
|
|
350 /* 376 */
|
|
351 #pragma pack(push, 1)
|
|
352 struct stru336
|
|
353 {
|
|
354 int field_0;
|
|
355 int field_4;
|
|
356 int field_8;
|
|
357 int field_C;
|
|
358 int field_10;
|
|
359 int field_14;
|
|
360 __int16 field_18[480];
|
|
361 __int16 field_3D8[480];
|
|
362 };
|
|
363 #pragma pack(pop)
|
|
364
|
|
365
|
|
366
|
|
367
|
|
368
|
|
369
|
|
370
|
|
371
|
|
372
|
|
373
|
|
374
|
|
375
|
|
376
|
|
377 /* 388 */
|
|
378 #pragma pack(push, 1)
|
|
379 struct stru348
|
|
380 {
|
|
381 __int16 field_0;
|
|
382 __int16 field_2;
|
|
383 __int16 field_4;
|
|
384 __int16 field_6;
|
|
385 __int16 field_8;
|
|
386 __int16 field_A;
|
|
387 __int16 field_C;
|
|
388 __int16 field_E;
|
|
389 __int16 field_10;
|
|
390 __int16 field_12;
|
|
391 int field_14;
|
|
392 };
|
|
393 #pragma pack(pop)
|
|
394
|
|
395 extern stru348 stru_4E1890[13];
|
|
396
|
|
397
|
|
398
|
|
399
|
|
400
|
|
401
|