Mercurial > mm7
comparison MM7.h @ 0:9c0607679772
init
author | Ritor1 |
---|---|
date | Sat, 12 Jan 2013 09:45:18 +0600 |
parents | |
children | 49728858c35e |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:9c0607679772 |
---|---|
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 /* 301 */ | |
229 enum PlayerSpeech | |
230 { | |
231 SPEECH_Yell = 0x41, | |
232 }; | |
233 | |
234 | |
235 | |
236 | |
237 | |
238 | |
239 | |
240 | |
241 | |
242 | |
243 | |
244 | |
245 | |
246 | |
247 | |
248 | |
249 | |
250 | |
251 | |
252 | |
253 | |
254 /* 349 */ | |
255 enum HOUSE_TYPE | |
256 { | |
257 HOUSE_BODY_GUILD_NOVICE_EMERALD_ISLE = 0xA3, | |
258 }; | |
259 | |
260 | |
261 | |
262 | |
263 | |
264 | |
265 | |
266 | |
267 | |
268 | |
269 | |
270 /* 362 */ | |
271 #pragma pack(push, 1) | |
272 struct TravelInfo | |
273 { | |
274 char uMapID; | |
275 char pSchedule[7]; | |
276 char uDaysCount; | |
277 char field_9[3]; | |
278 int x; | |
279 int y; | |
280 int z; | |
281 int direction; | |
282 int field_1C; | |
283 }; | |
284 #pragma pack(pop) | |
285 | |
286 | |
287 | |
288 | |
289 | |
290 | |
291 /* 369 */ | |
292 #pragma pack(push, 1) | |
293 struct stru329 | |
294 { | |
295 int field_0; | |
296 float field_4; | |
297 int field_8; | |
298 int field_C; | |
299 int equip_x; | |
300 int equip_y; | |
301 int field_18; | |
302 int field_1C; | |
303 int field_20; | |
304 int field_24; | |
305 int field_28; | |
306 int field_2C; | |
307 int field_30; | |
308 int field_34; | |
309 int field_38; | |
310 int field_3C; | |
311 int field_40; | |
312 int field_44; | |
313 int field_48; | |
314 int field_4C; | |
315 int field_50; | |
316 int field_54; | |
317 int field_58; | |
318 int field_5C; | |
319 int field_60; | |
320 int field_64; | |
321 int field_68; | |
322 int field_6C; | |
323 int field_70; | |
324 int field_74; | |
325 int field_78; | |
326 int field_7C; | |
327 }; | |
328 #pragma pack(pop) | |
329 extern stru329 array_4E4C30[4]; | |
330 | |
331 /* 371 */ | |
332 #pragma pack(push, 1) | |
333 struct stru331 | |
334 { | |
335 int field_0; | |
336 int field_4; | |
337 int field_8; | |
338 int field_C; | |
339 int field_10; | |
340 int field_14; | |
341 int field_18; | |
342 int field_1C; | |
343 int field_20; | |
344 int field_24; | |
345 int field_28; | |
346 int field_2C; | |
347 int field_30; | |
348 int field_34; | |
349 int field_38; | |
350 int field_3C; | |
351 }; | |
352 #pragma pack(pop) | |
353 | |
354 /* 372 */ | |
355 #pragma pack(push, 1) | |
356 struct stru332 | |
357 { | |
358 unsigned int texids[11]; | |
359 stru331 field_2C; | |
360 }; | |
361 #pragma pack(pop) | |
362 extern stru332 stru_511698; | |
363 | |
364 | |
365 /* 373 */ | |
366 #pragma pack(push, 1) | |
367 struct stru333 | |
368 { | |
369 unsigned int texids[5]; | |
370 unsigned int *texid1; | |
371 int field_18; | |
372 }; | |
373 #pragma pack(pop) | |
374 extern stru333 stru_511718; | |
375 | |
376 | |
377 /* 374 */ | |
378 #pragma pack(push, 1) | |
379 struct stru334 | |
380 { | |
381 __int16 field_0; | |
382 __int16 field_2; | |
383 __int16 field_4; | |
384 __int16 field_6; | |
385 }; | |
386 #pragma pack(pop) | |
387 extern stru334 array_4E2940[26]; | |
388 | |
389 /* 376 */ | |
390 #pragma pack(push, 1) | |
391 struct stru336 | |
392 { | |
393 int field_0; | |
394 int field_4; | |
395 int field_8; | |
396 int field_C; | |
397 int field_10; | |
398 int field_14; | |
399 __int16 field_18[480]; | |
400 __int16 field_3D8[480]; | |
401 }; | |
402 #pragma pack(pop) | |
403 | |
404 | |
405 | |
406 | |
407 | |
408 | |
409 | |
410 | |
411 | |
412 | |
413 | |
414 | |
415 | |
416 /* 388 */ | |
417 #pragma pack(push, 1) | |
418 struct stru348 | |
419 { | |
420 __int16 field_0; | |
421 __int16 field_2; | |
422 __int16 field_4; | |
423 __int16 field_6; | |
424 __int16 field_8; | |
425 __int16 field_A; | |
426 __int16 field_C; | |
427 __int16 field_E; | |
428 __int16 field_10; | |
429 __int16 field_12; | |
430 int field_14; | |
431 }; | |
432 #pragma pack(pop) | |
433 | |
434 extern stru348 stru_4E1890[13]; | |
435 | |
436 | |
437 | |
438 | |
439 | |
440 |