annotate MM7.h @ 1179:883eaee77094

sub_424829
author Ritor1
date Wed, 05 Jun 2013 17:40:09 +0600
parents 29a8defbad9e
children 0dbf6c4dd029
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2 #include <math.h>
Ritor1
parents:
diff changeset
3 #include <stdio.h>
Ritor1
parents:
diff changeset
4 #include <stdarg.h>
Ritor1
parents:
diff changeset
5 #include <string>
Ritor1
parents:
diff changeset
6
Ritor1
parents:
diff changeset
7 typedef unsigned int uint;
Ritor1
parents:
diff changeset
8
823
c1da83d8223f More spell renames
Nomad
parents: 786
diff changeset
9 #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
10 #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
11 #define PID_ID(pid) (unsigned int)(((pid) & 0xFFFF) >> 3) // extract value
1119
aa706cde7fda * dark spells working
zipi
parents: 1117
diff changeset
12
0
Ritor1
parents:
diff changeset
13
Ritor1
parents:
diff changeset
14 typedef unsigned __int16 _WORD;
Ritor1
parents:
diff changeset
15 typedef unsigned __int64 _QWORD;
Ritor1
parents:
diff changeset
16
Ritor1
parents:
diff changeset
17
Ritor1
parents:
diff changeset
18 #include "VectorTypes.h"
Ritor1
parents:
diff changeset
19 #include "IndoorCameraD3D.h"
Ritor1
parents:
diff changeset
20
Ritor1
parents:
diff changeset
21
Ritor1
parents:
diff changeset
22
Ritor1
parents:
diff changeset
23
Ritor1
parents:
diff changeset
24
Ritor1
parents:
diff changeset
25
Ritor1
parents:
diff changeset
26
Ritor1
parents:
diff changeset
27 /* 288 */
938
016e3577865c stru289 removed, some data movements
Nomad
parents: 900
diff changeset
28 /*#pragma pack(push, 1)
0
Ritor1
parents:
diff changeset
29 struct CheckHRESULT_stru0
Ritor1
parents:
diff changeset
30 {
Ritor1
parents:
diff changeset
31 void CheckHRESULT(HRESULT a2, const char *Str, int a4, unsigned int uType);
Ritor1
parents:
diff changeset
32 void *_466D09_xcpt_string(std::string a2, const char *Str, int a4);
Ritor1
parents:
diff changeset
33 void ShowMessageBox(std::string *a0, std::string lpCaption, UINT uType, std::string lpText, int line);
Ritor1
parents:
diff changeset
34 char ddraw_error(HRESULT hr, char *Str, size_t a3);
Ritor1
parents:
diff changeset
35 char dinput_error(int a1, const char *Str, int a3);
Ritor1
parents:
diff changeset
36
Ritor1
parents:
diff changeset
37 void (__thiscall ***vdestructor_ptr)(CheckHRESULT_stru0 *, bool);
Ritor1
parents:
diff changeset
38 };
938
016e3577865c stru289 removed, some data movements
Nomad
parents: 900
diff changeset
39 #pragma pack(pop)*/
0
Ritor1
parents:
diff changeset
40
Ritor1
parents:
diff changeset
41
Ritor1
parents:
diff changeset
42
Ritor1
parents:
diff changeset
43
Ritor1
parents:
diff changeset
44 /* 297 */
Ritor1
parents:
diff changeset
45 enum SoundType
Ritor1
parents:
diff changeset
46 {
Ritor1
parents:
diff changeset
47 SOUND_EndTurnBasedMode = 0xCE,
Ritor1
parents:
diff changeset
48 SOUND_StartTurnBasedMode = 0xCF,
Ritor1
parents:
diff changeset
49 SOUND_FlipOnExit = 0x4E21,
Ritor1
parents:
diff changeset
50 };
Ritor1
parents:
diff changeset
51
Ritor1
parents:
diff changeset
52
Ritor1
parents:
diff changeset
53
Ritor1
parents:
diff changeset
54 /* 362 */
Ritor1
parents:
diff changeset
55 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
56 struct TravelInfo
Ritor1
parents:
diff changeset
57 {
Ritor1
parents:
diff changeset
58 char uMapID;
Ritor1
parents:
diff changeset
59 char pSchedule[7];
Ritor1
parents:
diff changeset
60 char uDaysCount;
Ritor1
parents:
diff changeset
61 char field_9[3];
Ritor1
parents:
diff changeset
62 int x;
Ritor1
parents:
diff changeset
63 int y;
Ritor1
parents:
diff changeset
64 int z;
Ritor1
parents:
diff changeset
65 int direction;
Ritor1
parents:
diff changeset
66 int field_1C;
Ritor1
parents:
diff changeset
67 };
Ritor1
parents:
diff changeset
68 #pragma pack(pop)
Ritor1
parents:
diff changeset
69
Ritor1
parents:
diff changeset
70
Ritor1
parents:
diff changeset
71
Ritor1
parents:
diff changeset
72
Ritor1
parents:
diff changeset
73
Ritor1
parents:
diff changeset
74
513
3ee1e351e710 Some CharacterUI_LoadPaperdollTextures overflows
Nomad
parents: 481
diff changeset
75
0
Ritor1
parents:
diff changeset
76
Ritor1
parents:
diff changeset
77
Ritor1
parents:
diff changeset
78
Ritor1
parents:
diff changeset
79
Ritor1
parents:
diff changeset
80
Ritor1
parents:
diff changeset
81 /* 374 */
Ritor1
parents:
diff changeset
82 #pragma pack(push, 1)
900
4dc2252e0b03 CharacterUI_StatsTab_ShowHint fixed
Ritor1
parents: 899
diff changeset
83 struct stat_coord
0
Ritor1
parents:
diff changeset
84 {
900
4dc2252e0b03 CharacterUI_StatsTab_ShowHint fixed
Ritor1
parents: 899
diff changeset
85 __int16 x;
4dc2252e0b03 CharacterUI_StatsTab_ShowHint fixed
Ritor1
parents: 899
diff changeset
86 __int16 y;
4dc2252e0b03 CharacterUI_StatsTab_ShowHint fixed
Ritor1
parents: 899
diff changeset
87 __int16 width;
4dc2252e0b03 CharacterUI_StatsTab_ShowHint fixed
Ritor1
parents: 899
diff changeset
88 __int16 height;
0
Ritor1
parents:
diff changeset
89 };
Ritor1
parents:
diff changeset
90 #pragma pack(pop)
900
4dc2252e0b03 CharacterUI_StatsTab_ShowHint fixed
Ritor1
parents: 899
diff changeset
91 extern stat_coord stat_string_coord[26];
0
Ritor1
parents:
diff changeset
92
Ritor1
parents:
diff changeset
93 /* 376 */
Ritor1
parents:
diff changeset
94 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
95 struct stru336
Ritor1
parents:
diff changeset
96 {
Ritor1
parents:
diff changeset
97 int field_0;
Ritor1
parents:
diff changeset
98 int field_4;
Ritor1
parents:
diff changeset
99 int field_8;
Ritor1
parents:
diff changeset
100 int field_C;
Ritor1
parents:
diff changeset
101 int field_10;
Ritor1
parents:
diff changeset
102 int field_14;
Ritor1
parents:
diff changeset
103 __int16 field_18[480];
Ritor1
parents:
diff changeset
104 __int16 field_3D8[480];
Ritor1
parents:
diff changeset
105 };
Ritor1
parents:
diff changeset
106 #pragma pack(pop)
Ritor1
parents:
diff changeset
107