annotate MM7.h @ 2208:0b2eea6f80c9

for video in homes
author Ritor1
date Wed, 12 Feb 2014 16:33:12 +0600
parents c4ab816fcc5e
children
rev   line source
0
Ritor1
parents:
diff changeset
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
Ritor1
parents:
diff changeset
3
Ritor1
parents:
diff changeset
4 typedef unsigned int uint;
Ritor1
parents:
diff changeset
5
823
c1da83d8223f More spell renames
Nomad
parents: 786
diff changeset
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
aa706cde7fda * dark spells working
zipi
parents: 1117
diff changeset
9
0
Ritor1
parents:
diff changeset
10
Ritor1
parents:
diff changeset
11 typedef unsigned __int16 _WORD;
Ritor1
parents:
diff changeset
12 typedef unsigned __int64 _QWORD;
Ritor1
parents:
diff changeset
13
Ritor1
parents:
diff changeset
14
Ritor1
parents:
diff changeset
15
Ritor1
parents:
diff changeset
16
Ritor1
parents:
diff changeset
17
Ritor1
parents:
diff changeset
18
Ritor1
parents:
diff changeset
19
Ritor1
parents:
diff changeset
20 /* 297 */
Ritor1
parents:
diff changeset
21 enum SoundType
Ritor1
parents:
diff changeset
22 {
Ritor1
parents:
diff changeset
23 SOUND_EndTurnBasedMode = 0xCE,
Ritor1
parents:
diff changeset
24 SOUND_StartTurnBasedMode = 0xCF,
Ritor1
parents:
diff changeset
25 SOUND_FlipOnExit = 0x4E21,
Ritor1
parents:
diff changeset
26 };
Ritor1
parents:
diff changeset
27
Ritor1
parents:
diff changeset
28
Ritor1
parents:
diff changeset
29
Ritor1
parents:
diff changeset
30 /* 362 */
Ritor1
parents:
diff changeset
31 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
32 struct TravelInfo
Ritor1
parents:
diff changeset
33 {
Ritor1
parents:
diff changeset
34 char uMapID;
Ritor1
parents:
diff changeset
35 char pSchedule[7];
Ritor1
parents:
diff changeset
36 char uDaysCount;
Ritor1
parents:
diff changeset
37 char field_9[3];
Ritor1
parents:
diff changeset
38 int x;
Ritor1
parents:
diff changeset
39 int y;
Ritor1
parents:
diff changeset
40 int z;
Ritor1
parents:
diff changeset
41 int direction;
Ritor1
parents:
diff changeset
42 int field_1C;
Ritor1
parents:
diff changeset
43 };
Ritor1
parents:
diff changeset
44 #pragma pack(pop)
Ritor1
parents:
diff changeset
45
Ritor1
parents:
diff changeset
46
Ritor1
parents:
diff changeset
47
Ritor1
parents:
diff changeset
48
Ritor1
parents:
diff changeset
49
Ritor1
parents:
diff changeset
50
513
3ee1e351e710 Some CharacterUI_LoadPaperdollTextures overflows
Nomad
parents: 481
diff changeset
51
0
Ritor1
parents:
diff changeset
52
Ritor1
parents:
diff changeset
53
Ritor1
parents:
diff changeset
54
Ritor1
parents:
diff changeset
55
Ritor1
parents:
diff changeset
56
Ritor1
parents:
diff changeset
57 /* 374 */
Ritor1
parents:
diff changeset
58 #pragma pack(push, 1)
900
4dc2252e0b03 CharacterUI_StatsTab_ShowHint fixed
Ritor1
parents: 899
diff changeset
59 struct stat_coord
0
Ritor1
parents:
diff changeset
60 {
900
4dc2252e0b03 CharacterUI_StatsTab_ShowHint fixed
Ritor1
parents: 899
diff changeset
61 __int16 x;
4dc2252e0b03 CharacterUI_StatsTab_ShowHint fixed
Ritor1
parents: 899
diff changeset
62 __int16 y;
4dc2252e0b03 CharacterUI_StatsTab_ShowHint fixed
Ritor1
parents: 899
diff changeset
63 __int16 width;
4dc2252e0b03 CharacterUI_StatsTab_ShowHint fixed
Ritor1
parents: 899
diff changeset
64 __int16 height;
0
Ritor1
parents:
diff changeset
65 };
Ritor1
parents:
diff changeset
66 #pragma pack(pop)
1202
0dbf6c4dd029 arrays to std::arrays phase 1
Grumpy7
parents: 1165
diff changeset
67 extern std::array<stat_coord, 26> stat_string_coord;
0
Ritor1
parents:
diff changeset
68
Ritor1
parents:
diff changeset
69 /* 376 */
Ritor1
parents:
diff changeset
70 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
71 struct stru336
Ritor1
parents:
diff changeset
72 {
Ritor1
parents:
diff changeset
73 int field_0;
Ritor1
parents:
diff changeset
74 int field_4;
Ritor1
parents:
diff changeset
75 int field_8;
Ritor1
parents:
diff changeset
76 int field_C;
Ritor1
parents:
diff changeset
77 int field_10;
Ritor1
parents:
diff changeset
78 int field_14;
Ritor1
parents:
diff changeset
79 __int16 field_18[480];
Ritor1
parents:
diff changeset
80 __int16 field_3D8[480];
Ritor1
parents:
diff changeset
81 };
Ritor1
parents:
diff changeset
82 #pragma pack(pop)
Ritor1
parents:
diff changeset
83