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