Mercurial > mm7
annotate MM7.h @ 1904:1a1c4040bee4
m
author | Ritor1 |
---|---|
date | Mon, 21 Oct 2013 17:23:59 +0600 |
parents | c4ab816fcc5e |
children |
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 | |
16 | |
17 | |
18 | |
19 | |
20 /* 297 */ | |
21 enum SoundType | |
22 { | |
23 SOUND_EndTurnBasedMode = 0xCE, | |
24 SOUND_StartTurnBasedMode = 0xCF, | |
25 SOUND_FlipOnExit = 0x4E21, | |
26 }; | |
27 | |
28 | |
29 | |
30 /* 362 */ | |
31 #pragma pack(push, 1) | |
32 struct TravelInfo | |
33 { | |
34 char uMapID; | |
35 char pSchedule[7]; | |
36 char uDaysCount; | |
37 char field_9[3]; | |
38 int x; | |
39 int y; | |
40 int z; | |
41 int direction; | |
42 int field_1C; | |
43 }; | |
44 #pragma pack(pop) | |
45 | |
46 | |
47 | |
48 | |
49 | |
50 | |
513 | 51 |
0 | 52 |
53 | |
54 | |
55 | |
56 | |
57 /* 374 */ | |
58 #pragma pack(push, 1) | |
900 | 59 struct stat_coord |
0 | 60 { |
900 | 61 __int16 x; |
62 __int16 y; | |
63 __int16 width; | |
64 __int16 height; | |
0 | 65 }; |
66 #pragma pack(pop) | |
1202 | 67 extern std::array<stat_coord, 26> stat_string_coord; |
0 | 68 |
69 /* 376 */ | |
70 #pragma pack(push, 1) | |
71 struct stru336 | |
72 { | |
73 int field_0; | |
74 int field_4; | |
75 int field_8; | |
76 int field_C; | |
77 int field_10; | |
78 int field_14; | |
79 __int16 field_18[480]; | |
80 __int16 field_3D8[480]; | |
81 }; | |
82 #pragma pack(pop) | |
83 |