Mercurial > mm7
annotate MM7.h @ 1136:3dc32954f1c7
Слияние
author | Ritor1 |
---|---|
date | Sat, 25 May 2013 02:23:47 +0600 |
parents | c45d51b3f4f4 |
children | ad89d1905b48 |
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 #define LOWORD(a) (*((unsigned short *)&a)) | |
9 #define HIWORD(a) (*((unsigned short *)&a + 1)) | |
10 #define SHIWORD(a) (*((short *)&a + 1)) | |
11 | |
12 #define LODWORD(a) (*((unsigned int *)&a)) | |
13 #define HIDWORD(a) (*((unsigned int *)&a + 1)) | |
14 #define SLODWORD(a) (*((int *)&a)) | |
15 #define SHIDWORD(a) (*((int *)&a + 1)) | |
16 | |
17 #define LOBYTE(a) (*((unsigned char *)&a)) | |
18 #define HIBYTE(a) (*((unsigned char *)&a + sizeof(a) - 1)) | |
19 #define BYTE1(a) (*((unsigned char *)&a + 1)) | |
20 #define BYTE2(a) (*((unsigned char *)&a + 2)) | |
21 #define BYTE3(a) (*((unsigned char *)&a + 3)) | |
22 | |
823 | 23 #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
|
24 #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
|
25 #define PID_ID(pid) (unsigned int)(((pid) & 0xFFFF) >> 3) // extract value |
823 | 26 |
0 | 27 |
28 typedef unsigned __int16 _WORD; | |
29 typedef unsigned __int64 _QWORD; | |
30 | |
31 | |
32 #include "VectorTypes.h" | |
33 #include "IndoorCameraD3D.h" | |
34 | |
35 | |
36 | |
37 | |
38 | |
39 | |
40 | |
41 /* 288 */ | |
938 | 42 /*#pragma pack(push, 1) |
0 | 43 struct CheckHRESULT_stru0 |
44 { | |
45 void CheckHRESULT(HRESULT a2, const char *Str, int a4, unsigned int uType); | |
46 void *_466D09_xcpt_string(std::string a2, const char *Str, int a4); | |
47 void ShowMessageBox(std::string *a0, std::string lpCaption, UINT uType, std::string lpText, int line); | |
48 char ddraw_error(HRESULT hr, char *Str, size_t a3); | |
49 char dinput_error(int a1, const char *Str, int a3); | |
50 | |
51 void (__thiscall ***vdestructor_ptr)(CheckHRESULT_stru0 *, bool); | |
52 }; | |
938 | 53 #pragma pack(pop)*/ |
0 | 54 |
55 | |
56 | |
57 | |
58 /* 297 */ | |
59 enum SoundType | |
60 { | |
61 SOUND_EndTurnBasedMode = 0xCE, | |
62 SOUND_StartTurnBasedMode = 0xCF, | |
63 SOUND_FlipOnExit = 0x4E21, | |
64 }; | |
65 | |
66 | |
67 | |
68 /* 362 */ | |
69 #pragma pack(push, 1) | |
70 struct TravelInfo | |
71 { | |
72 char uMapID; | |
73 char pSchedule[7]; | |
74 char uDaysCount; | |
75 char field_9[3]; | |
76 int x; | |
77 int y; | |
78 int z; | |
79 int direction; | |
80 int field_1C; | |
81 }; | |
82 #pragma pack(pop) | |
83 | |
84 | |
85 | |
86 | |
87 | |
88 | |
513 | 89 |
0 | 90 |
91 | |
92 | |
93 | |
94 | |
95 /* 374 */ | |
96 #pragma pack(push, 1) | |
900 | 97 struct stat_coord |
0 | 98 { |
900 | 99 __int16 x; |
100 __int16 y; | |
101 __int16 width; | |
102 __int16 height; | |
0 | 103 }; |
104 #pragma pack(pop) | |
900 | 105 extern stat_coord stat_string_coord[26]; |
0 | 106 |
107 /* 376 */ | |
108 #pragma pack(push, 1) | |
109 struct stru336 | |
110 { | |
111 int field_0; | |
112 int field_4; | |
113 int field_8; | |
114 int field_C; | |
115 int field_10; | |
116 int field_14; | |
117 __int16 field_18[480]; | |
118 __int16 field_3D8[480]; | |
119 }; | |
120 #pragma pack(pop) | |
121 |