Mercurial > mm7
annotate MM7.h @ 1270:2e4a07ad5243
Player::GetSkillIdxByOrder cleanup - changing cycles to fors
author | Grumpy7 |
---|---|
date | Sat, 15 Jun 2013 02:15:03 +0200 |
parents | 0dbf6c4dd029 |
children | f11651288371 |
rev | line source |
---|---|
0 | 1 #pragma once |
2 #include <math.h> | |
3 #include <stdio.h> | |
4 #include <stdarg.h> | |
5 #include <string> | |
6 | |
7 typedef unsigned int uint; | |
8 | |
823 | 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 | 12 |
0 | 13 |
14 typedef unsigned __int16 _WORD; | |
15 typedef unsigned __int64 _QWORD; | |
16 | |
17 | |
18 #include "VectorTypes.h" | |
19 #include "IndoorCameraD3D.h" | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 | |
26 | |
27 /* 288 */ | |
938 | 28 /*#pragma pack(push, 1) |
0 | 29 struct CheckHRESULT_stru0 |
30 { | |
31 void CheckHRESULT(HRESULT a2, const char *Str, int a4, unsigned int uType); | |
32 void *_466D09_xcpt_string(std::string a2, const char *Str, int a4); | |
33 void ShowMessageBox(std::string *a0, std::string lpCaption, UINT uType, std::string lpText, int line); | |
34 char ddraw_error(HRESULT hr, char *Str, size_t a3); | |
35 char dinput_error(int a1, const char *Str, int a3); | |
36 | |
37 void (__thiscall ***vdestructor_ptr)(CheckHRESULT_stru0 *, bool); | |
38 }; | |
938 | 39 #pragma pack(pop)*/ |
0 | 40 |
41 | |
42 | |
43 | |
44 /* 297 */ | |
45 enum SoundType | |
46 { | |
47 SOUND_EndTurnBasedMode = 0xCE, | |
48 SOUND_StartTurnBasedMode = 0xCF, | |
49 SOUND_FlipOnExit = 0x4E21, | |
50 }; | |
51 | |
52 | |
53 | |
54 /* 362 */ | |
55 #pragma pack(push, 1) | |
56 struct TravelInfo | |
57 { | |
58 char uMapID; | |
59 char pSchedule[7]; | |
60 char uDaysCount; | |
61 char field_9[3]; | |
62 int x; | |
63 int y; | |
64 int z; | |
65 int direction; | |
66 int field_1C; | |
67 }; | |
68 #pragma pack(pop) | |
69 | |
70 | |
71 | |
72 | |
73 | |
74 | |
513 | 75 |
0 | 76 |
77 | |
78 | |
79 | |
80 | |
81 /* 374 */ | |
82 #pragma pack(push, 1) | |
900 | 83 struct stat_coord |
0 | 84 { |
900 | 85 __int16 x; |
86 __int16 y; | |
87 __int16 width; | |
88 __int16 height; | |
0 | 89 }; |
90 #pragma pack(pop) | |
1202 | 91 extern std::array<stat_coord, 26> stat_string_coord; |
0 | 92 |
93 /* 376 */ | |
94 #pragma pack(push, 1) | |
95 struct stru336 | |
96 { | |
97 int field_0; | |
98 int field_4; | |
99 int field_8; | |
100 int field_C; | |
101 int field_10; | |
102 int field_14; | |
103 __int16 field_18[480]; | |
104 __int16 field_3D8[480]; | |
105 }; | |
106 #pragma pack(pop) | |
107 |