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
|
|
25
|
0
|
26
|
|
27 typedef unsigned __int16 _WORD;
|
|
28 typedef unsigned __int64 _QWORD;
|
|
29
|
|
30
|
|
31 #include "VectorTypes.h"
|
|
32 #include "IndoorCameraD3D.h"
|
|
33 /*#include "LOD.h"
|
|
34 #include "Texture.h"
|
|
35 #include "Mouse.h"
|
|
36 #include "Overlays.h"
|
|
37 #include "Game.h"
|
|
38 #include "Items.h"
|
|
39 #include "Actor.h"
|
|
40 #include "Arcomage.h"
|
|
41 #include "Render.h"
|
|
42 #include "Time.h"
|
|
43 #include "GUIWindow.h"
|
|
44 #include "GUIButton.h"
|
|
45 #include "GUIProgressBar.h"
|
|
46 #include "GUIFont.h"
|
|
47 #include "NPC.h"
|
|
48 #include "PaletteManager.h"
|
|
49 #include "Party.h"
|
|
50 #include "AudioPlayer.h"
|
|
51 #include "VideoPlayer.h"
|
|
52 #include "Chest.h"
|
|
53 #include "Allocator.h"
|
|
54 #include "IndoorCamera.h"
|
|
55 #include "Party.h"
|
|
56 #include "Outdoor.h"
|
|
57
|
|
58 #include "mm7_data.h"
|
|
59 */
|
|
60
|
|
61
|
|
62
|
|
63
|
|
64
|
|
65
|
|
66
|
|
67
|
|
68
|
|
69
|
|
70
|
|
71 /* 154 */
|
|
72 #pragma pack(push, 1)
|
|
73 struct stru161
|
|
74 {
|
|
75 Vec3_int_ pos;
|
|
76 __int16 rot_y;
|
|
77 __int16 rot_x;
|
|
78 unsigned __int16 uMapInfoID;
|
|
79 __int16 field_12;
|
|
80 };
|
|
81 #pragma pack(pop)
|
|
82 extern stru161 stru_4ECBB8[6]; // weak
|
|
83
|
|
84
|
|
85
|
|
86
|
|
87
|
|
88
|
|
89
|
|
90
|
|
91
|
|
92
|
|
93
|
|
94 /* 285 */
|
|
95 #pragma pack(push, 1)
|
|
96 struct stru289
|
|
97 {
|
|
98 //----- (0046263C) --------------------------------------------------------
|
|
99 inline stru289()
|
|
100 {
|
|
101 this->field_64 = 2;
|
|
102 this->field_74 = 0;
|
|
103 this->field_70 = 0;
|
|
104 this->field_6C = 0;
|
|
105 this->field_68 = 0;
|
|
106 }
|
|
107
|
|
108
|
|
109 char field_0[100];
|
|
110 int field_64;
|
|
111 int field_68;
|
|
112 int field_6C;
|
|
113 int field_70;
|
|
114 int field_74;
|
|
115 };
|
|
116 #pragma pack(pop)
|
|
117 extern stru289 stru_6BE158;
|
|
118
|
|
119
|
|
120
|
|
121 /* 288 */
|
|
122 #pragma pack(push, 1)
|
|
123 struct CheckHRESULT_stru0
|
|
124 {
|
|
125 void CheckHRESULT(HRESULT a2, const char *Str, int a4, unsigned int uType);
|
|
126 void *_466D09_xcpt_string(std::string a2, const char *Str, int a4);
|
|
127 void ShowMessageBox(std::string *a0, std::string lpCaption, UINT uType, std::string lpText, int line);
|
|
128 char ddraw_error(HRESULT hr, char *Str, size_t a3);
|
|
129 char dinput_error(int a1, const char *Str, int a3);
|
|
130
|
|
131 void (__thiscall ***vdestructor_ptr)(CheckHRESULT_stru0 *, bool);
|
|
132 };
|
|
133 #pragma pack(pop)
|
|
134
|
|
135
|
|
136
|
|
137
|
|
138 /* 297 */
|
|
139 enum SoundType
|
|
140 {
|
|
141 SOUND_EndTurnBasedMode = 0xCE,
|
|
142 SOUND_StartTurnBasedMode = 0xCF,
|
|
143 SOUND_FlipOnExit = 0x4E21,
|
|
144 };
|
|
145
|
|
146
|
|
147
|
|
148 /* 362 */
|
|
149 #pragma pack(push, 1)
|
|
150 struct TravelInfo
|
|
151 {
|
|
152 char uMapID;
|
|
153 char pSchedule[7];
|
|
154 char uDaysCount;
|
|
155 char field_9[3];
|
|
156 int x;
|
|
157 int y;
|
|
158 int z;
|
|
159 int direction;
|
|
160 int field_1C;
|
|
161 };
|
|
162 #pragma pack(pop)
|
|
163
|
|
164
|
|
165
|
|
166
|
|
167
|
|
168
|
|
169 /* 369 */
|
|
170 #pragma pack(push, 1)
|
299
|
171
|
0
|
172 #pragma pack(pop)
|
299
|
173 extern int paperdoll_Weapon[4][16][2];
|
0
|
174
|
513
|
175 /* 371 */ // stru331 - deleted
|
|
176
|
0
|
177
|
|
178 /* 372 */
|
|
179 #pragma pack(push, 1)
|
|
180 struct stru332
|
|
181 {
|
|
182 unsigned int texids[11];
|
513
|
183 int texid1;
|
|
184 int texid2;
|
|
185 int texid3;
|
|
186 int texid4;
|
|
187 int texid5;
|
0
|
188 };
|
|
189 #pragma pack(pop)
|
513
|
190 extern stru332 stru_511698[];
|
0
|
191
|
|
192
|
|
193 /* 373 */
|
|
194 #pragma pack(push, 1)
|
|
195 struct stru333
|
|
196 {
|
|
197 unsigned int texids[5];
|
513
|
198 int texid1;
|
|
199 int texid2;
|
0
|
200 };
|
|
201 #pragma pack(pop)
|
513
|
202 extern stru333 stru_511718[];
|
0
|
203
|
|
204
|
|
205 /* 374 */
|
|
206 #pragma pack(push, 1)
|
|
207 struct stru334
|
|
208 {
|
|
209 __int16 field_0;
|
|
210 __int16 field_2;
|
|
211 __int16 field_4;
|
|
212 __int16 field_6;
|
|
213 };
|
|
214 #pragma pack(pop)
|
|
215 extern stru334 array_4E2940[26];
|
|
216
|
|
217 /* 376 */
|
|
218 #pragma pack(push, 1)
|
|
219 struct stru336
|
|
220 {
|
|
221 int field_0;
|
|
222 int field_4;
|
|
223 int field_8;
|
|
224 int field_C;
|
|
225 int field_10;
|
|
226 int field_14;
|
|
227 __int16 field_18[480];
|
|
228 __int16 field_3D8[480];
|
|
229 };
|
|
230 #pragma pack(pop)
|
|
231
|
|
232
|
|
233
|
|
234
|
|
235
|
|
236
|
|
237
|
|
238
|
|
239
|
|
240
|
|
241
|
|
242
|
|
243
|
|
244 /* 388 */
|
|
245 #pragma pack(push, 1)
|
|
246 struct stru348
|
|
247 {
|
|
248 __int16 field_0;
|
|
249 __int16 field_2;
|
|
250 __int16 field_4;
|
|
251 __int16 field_6;
|
|
252 __int16 field_8;
|
|
253 __int16 field_A;
|
|
254 __int16 field_C;
|
|
255 __int16 field_E;
|
|
256 __int16 field_10;
|
|
257 __int16 field_12;
|
|
258 int field_14;
|
|
259 };
|
|
260 #pragma pack(pop)
|
|
261
|
|
262 extern stru348 stru_4E1890[13];
|
|
263
|
|
264
|
|
265
|
|
266
|