annotate MM7.h @ 1386:72191abc8116

Player::SelectPhrasesTransaction redone
author Grumpy7
date Wed, 17 Jul 2013 00:19:33 +0200
parents f11651288371
children 934074e7fcc1
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 /* 288 */
938
016e3577865c stru289 removed, some data movements
Nomad
parents: 900
diff changeset
16 /*#pragma pack(push, 1)
0
Ritor1
parents:
diff changeset
17 struct CheckHRESULT_stru0
Ritor1
parents:
diff changeset
18 {
Ritor1
parents:
diff changeset
19 void CheckHRESULT(HRESULT a2, const char *Str, int a4, unsigned int uType);
Ritor1
parents:
diff changeset
20 void *_466D09_xcpt_string(std::string a2, const char *Str, int a4);
Ritor1
parents:
diff changeset
21 void ShowMessageBox(std::string *a0, std::string lpCaption, UINT uType, std::string lpText, int line);
Ritor1
parents:
diff changeset
22 char ddraw_error(HRESULT hr, char *Str, size_t a3);
Ritor1
parents:
diff changeset
23 char dinput_error(int a1, const char *Str, int a3);
Ritor1
parents:
diff changeset
24
Ritor1
parents:
diff changeset
25 void (__thiscall ***vdestructor_ptr)(CheckHRESULT_stru0 *, bool);
Ritor1
parents:
diff changeset
26 };
938
016e3577865c stru289 removed, some data movements
Nomad
parents: 900
diff changeset
27 #pragma pack(pop)*/
0
Ritor1
parents:
diff changeset
28
Ritor1
parents:
diff changeset
29
Ritor1
parents:
diff changeset
30
Ritor1
parents:
diff changeset
31
Ritor1
parents:
diff changeset
32 /* 297 */
Ritor1
parents:
diff changeset
33 enum SoundType
Ritor1
parents:
diff changeset
34 {
Ritor1
parents:
diff changeset
35 SOUND_EndTurnBasedMode = 0xCE,
Ritor1
parents:
diff changeset
36 SOUND_StartTurnBasedMode = 0xCF,
Ritor1
parents:
diff changeset
37 SOUND_FlipOnExit = 0x4E21,
Ritor1
parents:
diff changeset
38 };
Ritor1
parents:
diff changeset
39
Ritor1
parents:
diff changeset
40
Ritor1
parents:
diff changeset
41
Ritor1
parents:
diff changeset
42 /* 362 */
Ritor1
parents:
diff changeset
43 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
44 struct TravelInfo
Ritor1
parents:
diff changeset
45 {
Ritor1
parents:
diff changeset
46 char uMapID;
Ritor1
parents:
diff changeset
47 char pSchedule[7];
Ritor1
parents:
diff changeset
48 char uDaysCount;
Ritor1
parents:
diff changeset
49 char field_9[3];
Ritor1
parents:
diff changeset
50 int x;
Ritor1
parents:
diff changeset
51 int y;
Ritor1
parents:
diff changeset
52 int z;
Ritor1
parents:
diff changeset
53 int direction;
Ritor1
parents:
diff changeset
54 int field_1C;
Ritor1
parents:
diff changeset
55 };
Ritor1
parents:
diff changeset
56 #pragma pack(pop)
Ritor1
parents:
diff changeset
57
Ritor1
parents:
diff changeset
58
Ritor1
parents:
diff changeset
59
Ritor1
parents:
diff changeset
60
Ritor1
parents:
diff changeset
61
Ritor1
parents:
diff changeset
62
513
3ee1e351e710 Some CharacterUI_LoadPaperdollTextures overflows
Nomad
parents: 481
diff changeset
63
0
Ritor1
parents:
diff changeset
64
Ritor1
parents:
diff changeset
65
Ritor1
parents:
diff changeset
66
Ritor1
parents:
diff changeset
67
Ritor1
parents:
diff changeset
68
Ritor1
parents:
diff changeset
69 /* 374 */
Ritor1
parents:
diff changeset
70 #pragma pack(push, 1)
900
4dc2252e0b03 CharacterUI_StatsTab_ShowHint fixed
Ritor1
parents: 899
diff changeset
71 struct stat_coord
0
Ritor1
parents:
diff changeset
72 {
900
4dc2252e0b03 CharacterUI_StatsTab_ShowHint fixed
Ritor1
parents: 899
diff changeset
73 __int16 x;
4dc2252e0b03 CharacterUI_StatsTab_ShowHint fixed
Ritor1
parents: 899
diff changeset
74 __int16 y;
4dc2252e0b03 CharacterUI_StatsTab_ShowHint fixed
Ritor1
parents: 899
diff changeset
75 __int16 width;
4dc2252e0b03 CharacterUI_StatsTab_ShowHint fixed
Ritor1
parents: 899
diff changeset
76 __int16 height;
0
Ritor1
parents:
diff changeset
77 };
Ritor1
parents:
diff changeset
78 #pragma pack(pop)
1202
0dbf6c4dd029 arrays to std::arrays phase 1
Grumpy7
parents: 1165
diff changeset
79 extern std::array<stat_coord, 26> stat_string_coord;
0
Ritor1
parents:
diff changeset
80
Ritor1
parents:
diff changeset
81 /* 376 */
Ritor1
parents:
diff changeset
82 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
83 struct stru336
Ritor1
parents:
diff changeset
84 {
Ritor1
parents:
diff changeset
85 int field_0;
Ritor1
parents:
diff changeset
86 int field_4;
Ritor1
parents:
diff changeset
87 int field_8;
Ritor1
parents:
diff changeset
88 int field_C;
Ritor1
parents:
diff changeset
89 int field_10;
Ritor1
parents:
diff changeset
90 int field_14;
Ritor1
parents:
diff changeset
91 __int16 field_18[480];
Ritor1
parents:
diff changeset
92 __int16 field_3D8[480];
Ritor1
parents:
diff changeset
93 };
Ritor1
parents:
diff changeset
94 #pragma pack(pop)
Ritor1
parents:
diff changeset
95