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 */
|
|
166 enum HOUSE_TYPE
|
|
167 {
|
343
|
168 HOUSE_SMITH_EMERALD_ISLE = 1,
|
341
|
169 HOUSE_BODY_GUILD_NOVICE_EMERALD_ISLE = 163,
|
|
170 HOUSE_186 = 186,
|
|
171 HOUSE_JAIL = 187,
|
|
172 HOUSE_600 = 600,
|
|
173 HOUSE_601 = 601
|
0
|
174 };
|
|
175
|
|
176
|
|
177
|
|
178
|
|
179
|
|
180
|
|
181
|
|
182
|
|
183
|
|
184
|
|
185
|
|
186 /* 362 */
|
|
187 #pragma pack(push, 1)
|
|
188 struct TravelInfo
|
|
189 {
|
|
190 char uMapID;
|
|
191 char pSchedule[7];
|
|
192 char uDaysCount;
|
|
193 char field_9[3];
|
|
194 int x;
|
|
195 int y;
|
|
196 int z;
|
|
197 int direction;
|
|
198 int field_1C;
|
|
199 };
|
|
200 #pragma pack(pop)
|
|
201
|
|
202
|
|
203
|
|
204
|
|
205
|
|
206
|
|
207 /* 369 */
|
|
208 #pragma pack(push, 1)
|
299
|
209
|
0
|
210 #pragma pack(pop)
|
299
|
211 extern int paperdoll_Weapon[4][16][2];
|
0
|
212
|
|
213 /* 371 */
|
|
214 #pragma pack(push, 1)
|
|
215 struct stru331
|
|
216 {
|
|
217 int field_0;
|
|
218 int field_4;
|
|
219 int field_8;
|
|
220 int field_C;
|
|
221 int field_10;
|
|
222 int field_14;
|
|
223 int field_18;
|
|
224 int field_1C;
|
|
225 int field_20;
|
|
226 int field_24;
|
|
227 int field_28;
|
|
228 int field_2C;
|
|
229 int field_30;
|
|
230 int field_34;
|
|
231 int field_38;
|
|
232 int field_3C;
|
|
233 };
|
|
234 #pragma pack(pop)
|
|
235
|
|
236 /* 372 */
|
|
237 #pragma pack(push, 1)
|
|
238 struct stru332
|
|
239 {
|
|
240 unsigned int texids[11];
|
|
241 stru331 field_2C;
|
|
242 };
|
|
243 #pragma pack(pop)
|
|
244 extern stru332 stru_511698;
|
|
245
|
|
246
|
|
247 /* 373 */
|
|
248 #pragma pack(push, 1)
|
|
249 struct stru333
|
|
250 {
|
|
251 unsigned int texids[5];
|
|
252 unsigned int *texid1;
|
|
253 int field_18;
|
|
254 };
|
|
255 #pragma pack(pop)
|
|
256 extern stru333 stru_511718;
|
|
257
|
|
258
|
|
259 /* 374 */
|
|
260 #pragma pack(push, 1)
|
|
261 struct stru334
|
|
262 {
|
|
263 __int16 field_0;
|
|
264 __int16 field_2;
|
|
265 __int16 field_4;
|
|
266 __int16 field_6;
|
|
267 };
|
|
268 #pragma pack(pop)
|
|
269 extern stru334 array_4E2940[26];
|
|
270
|
|
271 /* 376 */
|
|
272 #pragma pack(push, 1)
|
|
273 struct stru336
|
|
274 {
|
|
275 int field_0;
|
|
276 int field_4;
|
|
277 int field_8;
|
|
278 int field_C;
|
|
279 int field_10;
|
|
280 int field_14;
|
|
281 __int16 field_18[480];
|
|
282 __int16 field_3D8[480];
|
|
283 };
|
|
284 #pragma pack(pop)
|
|
285
|
|
286
|
|
287
|
|
288
|
|
289
|
|
290
|
|
291
|
|
292
|
|
293
|
|
294
|
|
295
|
|
296
|
|
297
|
|
298 /* 388 */
|
|
299 #pragma pack(push, 1)
|
|
300 struct stru348
|
|
301 {
|
|
302 __int16 field_0;
|
|
303 __int16 field_2;
|
|
304 __int16 field_4;
|
|
305 __int16 field_6;
|
|
306 __int16 field_8;
|
|
307 __int16 field_A;
|
|
308 __int16 field_C;
|
|
309 __int16 field_E;
|
|
310 __int16 field_10;
|
|
311 __int16 field_12;
|
|
312 int field_14;
|
|
313 };
|
|
314 #pragma pack(pop)
|
|
315
|
|
316 extern stru348 stru_4E1890[13];
|
|
317
|
|
318
|
|
319
|
|
320
|
|
321
|
|
322
|