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 /* 154 */
|
|
70 #pragma pack(push, 1)
|
|
71 struct stru161
|
|
72 {
|
|
73 Vec3_int_ pos;
|
|
74 __int16 rot_y;
|
|
75 __int16 rot_x;
|
|
76 unsigned __int16 uMapInfoID;
|
|
77 __int16 field_12;
|
|
78 };
|
|
79 #pragma pack(pop)
|
|
80 extern stru161 stru_4ECBB8[6]; // weak
|
|
81
|
|
82
|
|
83
|
|
84
|
|
85
|
|
86
|
|
87
|
|
88
|
|
89
|
|
90
|
|
91
|
|
92 /* 285 */
|
|
93 #pragma pack(push, 1)
|
|
94 struct stru289
|
|
95 {
|
|
96 //----- (0046263C) --------------------------------------------------------
|
|
97 inline stru289()
|
|
98 {
|
|
99 this->field_64 = 2;
|
|
100 this->field_74 = 0;
|
|
101 this->field_70 = 0;
|
|
102 this->field_6C = 0;
|
|
103 this->field_68 = 0;
|
|
104 }
|
|
105
|
|
106
|
|
107 char field_0[100];
|
|
108 int field_64;
|
|
109 int field_68;
|
|
110 int field_6C;
|
|
111 int field_70;
|
|
112 int field_74;
|
|
113 };
|
|
114 #pragma pack(pop)
|
|
115 extern stru289 stru_6BE158;
|
|
116
|
|
117
|
|
118
|
|
119 /* 288 */
|
|
120 #pragma pack(push, 1)
|
|
121 struct CheckHRESULT_stru0
|
|
122 {
|
|
123 void CheckHRESULT(HRESULT a2, const char *Str, int a4, unsigned int uType);
|
|
124 void *_466D09_xcpt_string(std::string a2, const char *Str, int a4);
|
|
125 void ShowMessageBox(std::string *a0, std::string lpCaption, UINT uType, std::string lpText, int line);
|
|
126 char ddraw_error(HRESULT hr, char *Str, size_t a3);
|
|
127 char dinput_error(int a1, const char *Str, int a3);
|
|
128
|
|
129 void (__thiscall ***vdestructor_ptr)(CheckHRESULT_stru0 *, bool);
|
|
130 };
|
|
131 #pragma pack(pop)
|
|
132
|
|
133
|
|
134
|
|
135
|
|
136 /* 297 */
|
|
137 enum SoundType
|
|
138 {
|
|
139 SOUND_EndTurnBasedMode = 0xCE,
|
|
140 SOUND_StartTurnBasedMode = 0xCF,
|
|
141 SOUND_FlipOnExit = 0x4E21,
|
|
142 };
|
|
143
|
|
144
|
|
145
|
|
146
|
|
147
|
|
148
|
|
149
|
|
150
|
|
151
|
|
152
|
|
153
|
|
154
|
|
155
|
|
156
|
|
157
|
|
158
|
|
159
|
|
160
|
|
161
|
|
162
|
|
163
|
|
164
|
|
165 /* 349 */
|
480
|
166 enum HOUSE_ID
|
0
|
167 {
|
343
|
168 HOUSE_SMITH_EMERALD_ISLE = 1,
|
341
|
169 HOUSE_BODY_GUILD_NOVICE_EMERALD_ISLE = 163,
|
481
|
170 HOUSE_BODY_GUILD_ERATHIA = 165,
|
|
171 HOUSE_DARK_GUILD_PIT = 170,
|
|
172 HOUSE_LORD_AND_JUDGE = 186,
|
341
|
173 HOUSE_JAIL = 187,
|
481
|
174 HOUSE_600 = 600,//???
|
|
175 HOUSE_601 = 601//???
|
0
|
176 };
|
|
177
|
|
178
|
|
179
|
|
180
|
|
181
|
|
182
|
|
183
|
|
184
|
|
185
|
|
186
|
|
187
|
|
188 /* 362 */
|
|
189 #pragma pack(push, 1)
|
|
190 struct TravelInfo
|
|
191 {
|
|
192 char uMapID;
|
|
193 char pSchedule[7];
|
|
194 char uDaysCount;
|
|
195 char field_9[3];
|
|
196 int x;
|
|
197 int y;
|
|
198 int z;
|
|
199 int direction;
|
|
200 int field_1C;
|
|
201 };
|
|
202 #pragma pack(pop)
|
|
203
|
|
204
|
|
205
|
|
206
|
|
207
|
|
208
|
|
209 /* 369 */
|
|
210 #pragma pack(push, 1)
|
299
|
211
|
0
|
212 #pragma pack(pop)
|
299
|
213 extern int paperdoll_Weapon[4][16][2];
|
0
|
214
|
|
215 /* 371 */
|
|
216 #pragma pack(push, 1)
|
|
217 struct stru331
|
|
218 {
|
|
219 int field_0;
|
|
220 int field_4;
|
|
221 int field_8;
|
|
222 int field_C;
|
|
223 int field_10;
|
|
224 int field_14;
|
|
225 int field_18;
|
|
226 int field_1C;
|
|
227 int field_20;
|
|
228 int field_24;
|
|
229 int field_28;
|
|
230 int field_2C;
|
|
231 int field_30;
|
|
232 int field_34;
|
|
233 int field_38;
|
|
234 int field_3C;
|
|
235 };
|
|
236 #pragma pack(pop)
|
|
237
|
|
238 /* 372 */
|
|
239 #pragma pack(push, 1)
|
|
240 struct stru332
|
|
241 {
|
|
242 unsigned int texids[11];
|
|
243 stru331 field_2C;
|
|
244 };
|
|
245 #pragma pack(pop)
|
|
246 extern stru332 stru_511698;
|
|
247
|
|
248
|
|
249 /* 373 */
|
|
250 #pragma pack(push, 1)
|
|
251 struct stru333
|
|
252 {
|
|
253 unsigned int texids[5];
|
|
254 unsigned int *texid1;
|
|
255 int field_18;
|
|
256 };
|
|
257 #pragma pack(pop)
|
|
258 extern stru333 stru_511718;
|
|
259
|
|
260
|
|
261 /* 374 */
|
|
262 #pragma pack(push, 1)
|
|
263 struct stru334
|
|
264 {
|
|
265 __int16 field_0;
|
|
266 __int16 field_2;
|
|
267 __int16 field_4;
|
|
268 __int16 field_6;
|
|
269 };
|
|
270 #pragma pack(pop)
|
|
271 extern stru334 array_4E2940[26];
|
|
272
|
|
273 /* 376 */
|
|
274 #pragma pack(push, 1)
|
|
275 struct stru336
|
|
276 {
|
|
277 int field_0;
|
|
278 int field_4;
|
|
279 int field_8;
|
|
280 int field_C;
|
|
281 int field_10;
|
|
282 int field_14;
|
|
283 __int16 field_18[480];
|
|
284 __int16 field_3D8[480];
|
|
285 };
|
|
286 #pragma pack(pop)
|
|
287
|
|
288
|
|
289
|
|
290
|
|
291
|
|
292
|
|
293
|
|
294
|
|
295
|
|
296
|
|
297
|
|
298
|
|
299
|
|
300 /* 388 */
|
|
301 #pragma pack(push, 1)
|
|
302 struct stru348
|
|
303 {
|
|
304 __int16 field_0;
|
|
305 __int16 field_2;
|
|
306 __int16 field_4;
|
|
307 __int16 field_6;
|
|
308 __int16 field_8;
|
|
309 __int16 field_A;
|
|
310 __int16 field_C;
|
|
311 __int16 field_E;
|
|
312 __int16 field_10;
|
|
313 __int16 field_12;
|
|
314 int field_14;
|
|
315 };
|
|
316 #pragma pack(pop)
|
|
317
|
|
318 extern stru348 stru_4E1890[13];
|
|
319
|
|
320
|
|
321
|
|
322
|
|
323
|
|
324
|