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