Mercurial > mm7
annotate MM7.h @ 1400:9b091098c88c
m
author | Ritor1 |
---|---|
date | Fri, 19 Jul 2013 12:50:29 +0600 |
parents | f11651288371 |
children | 934074e7fcc1 |
rev | line source |
---|---|
0 | 1 #pragma once |
1276
f11651288371
changed sub_467E7F_EquipBody to Player::EquipBody, some more header file stuff
Grumpy7
parents:
1202
diff
changeset
|
2 #include <array> |
0 | 3 |
4 typedef unsigned int uint; | |
5 | |
823 | 6 #define PID(type, id) (unsigned int)((((8 * (id))) | (type)) & 0xFFFF) // packed id |
828
0f56abdcce94
Massive refactors of spells + PID (packed id) macros introduced.
Nomad
parents:
823
diff
changeset
|
7 #define PID_TYPE(pid) (unsigned int)((pid) & 7) // extract type |
0f56abdcce94
Massive refactors of spells + PID (packed id) macros introduced.
Nomad
parents:
823
diff
changeset
|
8 #define PID_ID(pid) (unsigned int)(((pid) & 0xFFFF) >> 3) // extract value |
1119 | 9 |
0 | 10 |
11 typedef unsigned __int16 _WORD; | |
12 typedef unsigned __int64 _QWORD; | |
13 | |
14 | |
15 /* 288 */ | |
938 | 16 /*#pragma pack(push, 1) |
0 | 17 struct CheckHRESULT_stru0 |
18 { | |
19 void CheckHRESULT(HRESULT a2, const char *Str, int a4, unsigned int uType); | |
20 void *_466D09_xcpt_string(std::string a2, const char *Str, int a4); | |
21 void ShowMessageBox(std::string *a0, std::string lpCaption, UINT uType, std::string lpText, int line); | |
22 char ddraw_error(HRESULT hr, char *Str, size_t a3); | |
23 char dinput_error(int a1, const char *Str, int a3); | |
24 | |
25 void (__thiscall ***vdestructor_ptr)(CheckHRESULT_stru0 *, bool); | |
26 }; | |
938 | 27 #pragma pack(pop)*/ |
0 | 28 |
29 | |
30 | |
31 | |
32 /* 297 */ | |
33 enum SoundType | |
34 { | |
35 SOUND_EndTurnBasedMode = 0xCE, | |
36 SOUND_StartTurnBasedMode = 0xCF, | |
37 SOUND_FlipOnExit = 0x4E21, | |
38 }; | |
39 | |
40 | |
41 | |
42 /* 362 */ | |
43 #pragma pack(push, 1) | |
44 struct TravelInfo | |
45 { | |
46 char uMapID; | |
47 char pSchedule[7]; | |
48 char uDaysCount; | |
49 char field_9[3]; | |
50 int x; | |
51 int y; | |
52 int z; | |
53 int direction; | |
54 int field_1C; | |
55 }; | |
56 #pragma pack(pop) | |
57 | |
58 | |
59 | |
60 | |
61 | |
62 | |
513 | 63 |
0 | 64 |
65 | |
66 | |
67 | |
68 | |
69 /* 374 */ | |
70 #pragma pack(push, 1) | |
900 | 71 struct stat_coord |
0 | 72 { |
900 | 73 __int16 x; |
74 __int16 y; | |
75 __int16 width; | |
76 __int16 height; | |
0 | 77 }; |
78 #pragma pack(pop) | |
1202 | 79 extern std::array<stat_coord, 26> stat_string_coord; |
0 | 80 |
81 /* 376 */ | |
82 #pragma pack(push, 1) | |
83 struct stru336 | |
84 { | |
85 int field_0; | |
86 int field_4; | |
87 int field_8; | |
88 int field_C; | |
89 int field_10; | |
90 int field_14; | |
91 __int16 field_18[480]; | |
92 __int16 field_3D8[480]; | |
93 }; | |
94 #pragma pack(pop) | |
95 |