Mercurial > mm7
annotate mm7_data.h @ 2091:75edfa36c4de
Слияние
author | Ritor1 |
---|---|
date | Thu, 12 Dec 2013 09:28:05 +0600 |
parents | 3920278a2905 |
children | ee2724b9ca05 85e9766d6124 |
rev | line source |
---|---|
0 | 1 #pragma once |
2 #include <string> | |
1016 | 3 #include "VectorTypes.h" |
0 | 4 #include "OSAPI.h" |
1202 | 5 #include <array> |
1657
51a74615d956
DamagePlayerFromMonster continuing cleanup, part 3
Grumpy7
parents:
1650
diff
changeset
|
6 #include <assert.h> |
1708
f8414042db1f
Moving NZIArray to a separate class, fixing a few inventory bugs
Grumpy7
parents:
1699
diff
changeset
|
7 #include "NZIArray.h" |
1641 | 8 |
0 | 9 typedef char _UNKNOWN; |
10 typedef unsigned int uint; | |
11 | |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 | |
26 | |
27 | |
28 #if defined(__GNUC__) | |
29 typedef long long ll; | |
30 typedef unsigned long long ull; | |
31 #define __int64 long long | |
32 #define __int32 int | |
33 #define __int16 short | |
34 #define __int8 char | |
35 #define MAKELL(num) num ## LL | |
36 #define FMT_64 "ll" | |
37 #elif defined(_MSC_VER) | |
38 typedef __int64 ll; | |
39 typedef unsigned __int64 ull; | |
40 #define MAKELL(num) num ## i64 | |
41 #define FMT_64 "I64" | |
42 #elif defined (__BORLANDC__) | |
43 typedef __int64 ll; | |
44 typedef unsigned __int64 ull; | |
45 #define MAKELL(num) num ## i64 | |
46 #define FMT_64 "L" | |
47 #else | |
48 #error "unknown compiler" | |
49 #endif | |
50 typedef unsigned int uint; | |
51 typedef unsigned char uchar; | |
52 typedef unsigned short ushort; | |
53 typedef unsigned long ulong; | |
54 | |
55 typedef char int8; | |
56 typedef signed char sint8; | |
57 typedef unsigned char uint8; | |
58 typedef short int16; | |
59 typedef signed short sint16; | |
60 typedef unsigned short uint16; | |
61 typedef int int32; | |
62 typedef signed int sint32; | |
63 typedef unsigned int uint32; | |
64 typedef ll int64; | |
65 typedef ll sint64; | |
66 typedef ull uint64; | |
67 | |
68 // Partially defined types: | |
69 #define _BYTE uint8 | |
70 #define _WORD uint16 | |
71 #define _DWORD uint32 | |
72 #define _QWORD uint64 | |
73 #if !defined(_MSC_VER) | |
74 #define _LONGLONG __int128 | |
75 #endif | |
76 | |
77 #ifndef _WINDOWS_ | |
78 typedef int8 BYTE; | |
79 typedef int16 WORD; | |
80 typedef int32 DWORD; | |
81 typedef int32 LONG; | |
82 #endif | |
83 typedef int64 QWORD; | |
84 #ifndef __cplusplus | |
85 typedef int bool; // we want to use bool in our C programs | |
86 #endif | |
87 | |
88 // Some convenience macros to make partial accesses nicer | |
89 // first unsigned macros: | |
1165
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
90 #ifdef HIBYTE |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
91 #undef HIBYTE |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
92 #endif // HIBYTE |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
93 #ifdef HIWORD |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
94 #undef HIWORD |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
95 #endif // HIWORD |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
96 #ifdef LOBYTE |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
97 #undef LOBYTE |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
98 #endif // LOBYTE |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
99 #ifdef LOWORD |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
100 #undef LOWORD |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
101 #endif // LOWORD |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
102 |
0 | 103 #define LOBYTE(x) (*((_BYTE*)&(x))) // low byte |
104 #define LOWORD(x) (*((_WORD*)&(x))) // low word | |
105 #define LODWORD(x) (*((_DWORD*)&(x))) // low dword | |
106 #define HIBYTE(x) (*((_BYTE*)&(x)+1)) | |
107 #define HIWORD(x) (*((_WORD*)&(x)+1)) | |
108 #define HIDWORD(x) (*((_DWORD*)&(x)+1)) | |
109 #define BYTEn(x, n) (*((_BYTE*)&(x)+n)) | |
110 #define WORDn(x, n) (*((_WORD*)&(x)+n)) | |
111 #define BYTE1(x) BYTEn(x, 1) // byte 1 (counting from 0) | |
112 #define BYTE2(x) BYTEn(x, 2) | |
113 #define BYTE3(x) BYTEn(x, 3) | |
114 #define BYTE4(x) BYTEn(x, 4) | |
115 #define BYTE5(x) BYTEn(x, 5) | |
116 #define BYTE6(x) BYTEn(x, 6) | |
117 #define BYTE7(x) BYTEn(x, 7) | |
118 #define BYTE8(x) BYTEn(x, 8) | |
119 #define BYTE9(x) BYTEn(x, 9) | |
120 #define BYTE10(x) BYTEn(x, 10) | |
121 #define BYTE11(x) BYTEn(x, 11) | |
122 #define BYTE12(x) BYTEn(x, 12) | |
123 #define BYTE13(x) BYTEn(x, 13) | |
124 #define BYTE14(x) BYTEn(x, 14) | |
125 #define BYTE15(x) BYTEn(x, 15) | |
126 #define WORD1(x) WORDn(x, 1) | |
127 #define WORD2(x) WORDn(x, 2) // third word of the object, unsigned | |
128 #define WORD3(x) WORDn(x, 3) | |
129 #define WORD4(x) WORDn(x, 4) | |
130 #define WORD5(x) WORDn(x, 5) | |
131 #define WORD6(x) WORDn(x, 6) | |
132 #define WORD7(x) WORDn(x, 7) | |
133 | |
134 // now signed macros (the same but with sign extension) | |
135 #define SLOBYTE(x) (*((int8*)&(x))) | |
136 #define SLOWORD(x) (*((int16*)&(x))) | |
137 #define SLODWORD(x) (*((int32*)&(x))) | |
138 #define SHIBYTE(x) (*((int8*)&(x)+1)) | |
139 #define SHIWORD(x) (*((int16*)&(x)+1)) | |
140 #define SHIDWORD(x) (*((int32*)&(x)+1)) | |
141 #define SBYTEn(x, n) (*((int8*)&(x)+n)) | |
142 #define SWORDn(x, n) (*((int16*)&(x)+n)) | |
143 #define SBYTE1(x) SBYTEn(x, 1) | |
144 #define SBYTE2(x) SBYTEn(x, 2) | |
145 #define SBYTE3(x) SBYTEn(x, 3) | |
146 #define SBYTE4(x) SBYTEn(x, 4) | |
147 #define SBYTE5(x) SBYTEn(x, 5) | |
148 #define SBYTE6(x) SBYTEn(x, 6) | |
149 #define SBYTE7(x) SBYTEn(x, 7) | |
150 #define SBYTE8(x) SBYTEn(x, 8) | |
151 #define SBYTE9(x) SBYTEn(x, 9) | |
152 #define SBYTE10(x) SBYTEn(x, 10) | |
153 #define SBYTE11(x) SBYTEn(x, 11) | |
154 #define SBYTE12(x) SBYTEn(x, 12) | |
155 #define SBYTE13(x) SBYTEn(x, 13) | |
156 #define SBYTE14(x) SBYTEn(x, 14) | |
157 #define SBYTE15(x) SBYTEn(x, 15) | |
158 #define SWORD1(x) SWORDn(x, 1) | |
159 #define SWORD2(x) SWORDn(x, 2) | |
160 #define SWORD3(x) SWORDn(x, 3) | |
161 #define SWORD4(x) SWORDn(x, 4) | |
162 #define SWORD5(x) SWORDn(x, 5) | |
163 #define SWORD6(x) SWORDn(x, 6) | |
164 #define SWORD7(x) SWORDn(x, 7) | |
165 | |
166 | |
167 | |
168 // Generate a reference to pair of operands | |
169 template<class T> int16 __PAIR__( int8 high, T low) { return ((( int16)high) << sizeof(high)*8) | uint8(low); } | |
170 template<class T> int32 __PAIR__( int16 high, T low) { return ((( int32)high) << sizeof(high)*8) | uint16(low); } | |
171 template<class T> int64 __PAIR__( int32 high, T low) { return ((( int64)high) << sizeof(high)*8) | uint32(low); } | |
172 template<class T> uint16 __PAIR__(uint8 high, T low) { return (((uint16)high) << sizeof(high)*8) | uint8(low); } | |
173 template<class T> uint32 __PAIR__(uint16 high, T low) { return (((uint32)high) << sizeof(high)*8) | uint16(low); } | |
174 template<class T> uint64 __PAIR__(uint32 high, T low) { return (((uint64)high) << sizeof(high)*8) | uint32(low); } | |
175 | |
176 // rotate left | |
177 template<class T> T __ROL__(T value, uint count) | |
178 { | |
179 const uint nbits = sizeof(T) * 8; | |
180 count %= nbits; | |
181 | |
182 T high = value >> (nbits - count); | |
183 value <<= count; | |
184 value |= high; | |
185 return value; | |
186 } | |
187 | |
188 // rotate right | |
189 template<class T> T __ROR__(T value, uint count) | |
190 { | |
191 const uint nbits = sizeof(T) * 8; | |
192 count %= nbits; | |
193 | |
194 T low = value << (nbits - count); | |
195 value >>= count; | |
196 value |= low; | |
197 return value; | |
198 } | |
199 | |
200 // carry flag of left shift | |
201 template<class T> int8 __MKCSHL__(T value, uint count) | |
202 { | |
203 const uint nbits = sizeof(T) * 8; | |
204 count %= nbits; | |
205 | |
206 return (value >> (nbits-count)) & 1; | |
207 } | |
208 | |
209 // carry flag of right shift | |
210 template<class T> int8 __MKCSHR__(T value, uint count) | |
211 { | |
212 return (value >> (count-1)) & 1; | |
213 } | |
214 | |
215 // sign flag | |
216 template<class T> int8 __SETS__(T x) | |
217 { | |
218 if ( sizeof(T) == 1 ) | |
219 return int8(x) < 0; | |
220 if ( sizeof(T) == 2 ) | |
221 return int16(x) < 0; | |
222 if ( sizeof(T) == 4 ) | |
223 return int32(x) < 0; | |
224 return int64(x) < 0; | |
225 } | |
226 | |
227 // overflow flag of subtraction (x-y) | |
228 template<class T, class U> int8 __OFSUB__(T x, U y) | |
229 { | |
230 if ( sizeof(T) < sizeof(U) ) | |
231 { | |
232 U x2 = x; | |
233 int8 sx = __SETS__(x2); | |
234 return (sx ^ __SETS__(y)) & (sx ^ __SETS__(x2-y)); | |
235 } | |
236 else | |
237 { | |
238 T y2 = y; | |
239 int8 sx = __SETS__(x); | |
240 return (sx ^ __SETS__(y2)) & (sx ^ __SETS__(x-y2)); | |
241 } | |
242 } | |
243 | |
244 // overflow flag of addition (x+y) | |
245 template<class T, class U> int8 __OFADD__(T x, U y) | |
246 { | |
247 if ( sizeof(T) < sizeof(U) ) | |
248 { | |
249 U x2 = x; | |
250 int8 sx = __SETS__(x2); | |
251 return ((1 ^ sx) ^ __SETS__(y)) & (sx ^ __SETS__(x2+y)); | |
252 } | |
253 else | |
254 { | |
255 T y2 = y; | |
256 int8 sx = __SETS__(x); | |
257 return ((1 ^ sx) ^ __SETS__(y2)) & (sx ^ __SETS__(x+y2)); | |
258 } | |
259 } | |
260 | |
261 // carry flag of subtraction (x-y) | |
262 template<class T, class U> int8 __CFSUB__(T x, U y) | |
263 { | |
264 int size = sizeof(T) > sizeof(U) ? sizeof(T) : sizeof(U); | |
265 if ( size == 1 ) | |
266 return uint8(x) < uint8(y); | |
267 if ( size == 2 ) | |
268 return uint16(x) < uint16(y); | |
269 if ( size == 4 ) | |
270 return uint32(x) < uint32(y); | |
271 return uint64(x) < uint64(y); | |
272 } | |
273 | |
274 // carry flag of addition (x+y) | |
275 template<class T, class U> int8 __CFADD__(T x, U y) | |
276 { | |
277 int size = sizeof(T) > sizeof(U) ? sizeof(T) : sizeof(U); | |
278 if ( size == 1 ) | |
279 return uint8(x) > uint8(x+y); | |
280 if ( size == 2 ) | |
281 return uint16(x) > uint16(x+y); | |
282 if ( size == 4 ) | |
283 return uint32(x) > uint32(x+y); | |
284 return uint64(x) > uint64(x+y); | |
285 } | |
286 | |
287 | |
288 //------------------------------------------------------------------------- | |
289 // Data declarations | |
290 | |
351 | 291 extern int game_starting_year; |
819 | 292 extern int game_viewport_width; |
293 extern int game_viewport_height; | |
294 extern int game_viewport_x; | |
295 extern int game_viewport_y; | |
296 extern int game_viewport_z; | |
297 extern int game_viewport_w; | |
351 | 298 |
0 | 299 extern int pWindowList_at_506F50_minus1_indexing[1]; |
300 extern int dword_4C9890[10]; // weak | |
301 extern int dword_4C9920[16]; // weak | |
302 extern _UNKNOWN unk_4D8548; // weak | |
303 extern char byte_4D864C; // weak | |
304 extern float flt_4D86CC; // weak | |
305 extern int dword_4D86D8; // weak | |
306 extern int dword_4DAFCC; // weak | |
307 extern int (__stdcall *off_4DAFDC)(char); // weak | |
308 extern char asc_4DB724[]; // idb | |
309 extern int dword_4DBD94; // weak | |
310 extern int dword_4DF390; // weak | |
311 extern char Str2[]; // idb | |
1185 | 312 |
1183 | 313 |
0 | 314 extern float flt_4D84E8; |
1183 | 315 |
1186 | 316 |
0 | 317 extern char aIxf[4]; // idb |
318 extern _UNKNOWN unk_4E19FC; // weak | |
319 extern char aD[]; // idb | |
320 extern char asc_4E1AB0[]; // idb | |
321 extern char aWb_0[]; // idb | |
322 extern char a24bitPcxOnly[]; // idb | |
323 extern char Mode[]; // idb | |
324 extern char a16bitPcx[]; // idb | |
325 extern char aUnableToLoadS[]; // idb | |
326 extern char aBitmaps[]; // idb | |
327 extern char aIcons[]; // idb | |
328 extern char aPending[]; // idb | |
329 extern char aCanTFindS[]; // idb | |
1312 | 330 |
0 | 331 extern __int16 word_4E1D3A[]; // weak |
1310 | 332 |
1576 | 333 //extern std::array<char, 7> aSbwb00; // weak |
0 | 334 extern char aW[2]; // idb |
335 extern char aA[2]; // idb | |
336 extern char aSD[]; // idb | |
337 extern char aSS03d03dS000S0[]; // idb | |
338 extern char aLuS[]; // idb | |
339 extern char aS_1[]; // idb | |
340 extern char aSbSc02d[]; // idb | |
341 extern char aSbSs02d[]; // idb | |
342 extern char aTabDb[]; // idb | |
343 extern char aTabDa[]; // idb | |
344 extern char aIbM6D[]; // idb | |
345 extern char aIbM6U[]; // idb | |
346 extern char aIbM5D[]; // idb | |
347 extern char aIbM5U[]; // idb | |
348 extern char aPagemask[]; // idb | |
349 extern char aBook[]; // idb | |
350 extern char aSpell_fnt[]; // idb | |
351 extern char aAutonote_fnt[]; // idb | |
352 extern char aBook2_fnt[]; // idb | |
353 extern char pFontFile[]; // idb | |
354 extern char aFontpal[]; // idb | |
355 extern char aMapbordr[]; // idb | |
356 extern char aLloydDD_pcx[]; // idb | |
357 extern char aDataLloydDD_pc[]; // idb | |
358 extern char aLb_bordr[]; // idb | |
359 extern char aTphell[]; // idb | |
360 extern char aTpheaven[]; // idb | |
361 extern char aTpisland[]; // idb | |
362 extern char aTpwarlock[]; // idb | |
363 extern char aTpelf[]; // idb | |
364 extern char aTpharmndy[]; // idb | |
365 extern char aTownport[]; // idb | |
366 extern char aSbquiknot[]; // idb | |
367 extern char aTabAn8a[]; // idb | |
368 extern char aTabAn8b[]; // idb | |
369 extern char aTabAn4a[]; // idb | |
370 extern char aTabAn4b[]; // idb | |
371 extern char aTabAn5a[]; // idb | |
372 extern char aTabAn5b[]; // idb | |
373 extern char aTabAn3a[]; // idb | |
374 extern char aTabAn3b[]; // idb | |
375 extern char aTabAn2a[]; // idb | |
376 extern char aTabAn2b[]; // idb | |
377 extern char aTabAn1a[]; // idb | |
378 extern char aTabAn1b[]; // idb | |
379 extern char aDivbar[]; // idb | |
380 extern char aSbautnot[]; // idb | |
381 extern char aTabwoff[]; // idb | |
382 extern char aTabwon[]; // idb | |
383 extern char aTabeoff[]; // idb | |
384 extern char aTabeon[]; // idb | |
385 extern char aTabsoff[]; // idb | |
386 extern char aTabson[]; // idb | |
387 extern char aTabnoff[]; // idb | |
388 extern char aTabnon[]; // idb | |
389 extern char aZootOff[]; // idb | |
390 extern char aZoomOff[]; // idb | |
391 extern char aZootOn[]; // idb | |
392 extern char aZoomOn[]; // idb | |
393 extern char aSbmap[]; // idb | |
394 extern char aMoon_ful[]; // idb | |
395 extern char aMoon_2[]; // idb | |
396 extern char aMoon_4[]; // idb | |
397 extern char aMoon_new[]; // idb | |
398 extern char aSbdateTime[]; // idb | |
399 extern char aTabAn7a[]; // idb | |
400 extern char aTabAn6a[]; // idb | |
401 extern char aTabAn7b[]; // idb | |
402 extern char aTabAn6b[]; // idb | |
403 extern char aSbplayrnot[]; // idb | |
404 extern char aPending_0[]; // idb | |
405 extern char aUnknown[8]; // weak | |
406 extern char aS100110S[]; // idb | |
407 extern char aS100110D[]; // idb | |
408 extern char aS100110DS[]; // idb | |
409 extern char aS100110D02dSS[]; // idb | |
227 | 410 extern int pCurrentScreen; // 004E28F8 |
0 | 411 extern unsigned int uGammaPos; |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
412 extern std::array<int, 8> BtnTurnCoord; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
413 extern std::array<__int16, 4> RightClickPortraitXmin; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
414 extern std::array<__int16, 4> RightClickPortraitXmax; |
0 | 415 extern void *off_4E2A12; // weak |
1091 | 416 //extern int pArmorSkills[5]; |
417 //extern int pWeaponSkills[9]; | |
418 //extern int pMiscSkills[12]; | |
419 //extern int pMagicSkills[9]; | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
420 extern std::array<unsigned int, 4> pHealthBarPos; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
421 extern std::array<unsigned int, 4> pManaBarPos; |
1268 | 422 //extern std::array<char, 80> _4E2B21_buff_spell_tooltip_colors; |
1243
766ec1e7f4ea
fixing monster portrait not drawing when rightclicking + out of bounds error when opening inventory
Grumpy7
parents:
1215
diff
changeset
|
423 extern std::array<char, 88> monster_popup_y_offsets; // weak |
649 | 424 extern unsigned char hourglass_icon_idx; // weak |
526 | 425 |
948 | 426 |
46 | 427 extern const char *format_4E2D80; |
0 | 428 extern char format_4E2D90[8]; |
900 | 429 extern const char *format_4E2DE8; // idb |
46 | 430 extern const char *format_4E2E00; // idb |
431 extern const char *format_4E2E10; // format text of resistance in Stats screen | |
0 | 432 extern __int16 word_4E3C66[]; // idb |
433 extern int dword_4E455C; // weak | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
434 extern std::array<int, 6> dword_4E4560; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
435 extern std::array<int, 6> dword_4E4578; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
436 extern std::array<int, 6> dword_4E4590; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
437 extern std::array<int, 6> dword_4E45A8; |
0 | 438 extern _UNKNOWN dword_4E49D4; // idb |
439 extern int dword_4E4A18[]; // weak | |
440 extern int dword_4E4A1C[]; // weak | |
441 extern int dword_4E4A40[]; // weak | |
442 extern int dword_4E4A44[]; // weak | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
443 extern std::array<float, 10> flt_4E4A80; |
1091 | 444 |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
445 extern std::array< std::array<int, 2>, 14> pPartySpellbuffsUI_XYs; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
446 extern std::array<unsigned char, 14> byte_4E5DD8; // weak |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
447 extern std::array<unsigned __int8, 14> pPartySpellbuffsUI_smthns; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
448 extern std::array< std::array<int, 6>, 6> pNPCPortraits_x; // 004E5E50 |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
449 extern std::array< std::array<int, 6>, 6> pNPCPortraits_y; // 004E5EE0 |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
450 extern std::array<const char *, 11> pHouse_ExitPictures; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
451 extern std::array<const char *, 11> _4E6BDC_loc_names; |
0 | 452 extern int bWinNT4_0; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
453 extern std::array<__int16, 11> word_4E8152; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
454 extern std::array< std::array<char, 14>, 7> byte_4E8168; |
1262 | 455 //extern stru355 stru_4E82A4;// = {0x20, 0x41, 0, 0x20, 0xFF0000, 0xFF00, 0xFF, 0xFF000000}; moved to texture.h |
456 //extern stru355 stru_4EFCBC;// = {0x20, 0x41, 0, 0x10, 0x7C00, 0x3E0, 0x1F, 0x8000}; moved to texture.h | |
0 | 457 extern char byte_4E94D0; // weak |
458 extern char _4E94D2_light_type; // weak | |
459 extern char byte_4E94D3; // weak | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
460 extern std::array<unsigned int, 2> saveload_dlg_xs; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
461 extern std::array<unsigned int, 2> saveload_dlg_ys; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
462 extern std::array<unsigned int, 2> saveload_dlg_zs; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
463 extern std::array<unsigned int, 2> saveload_dlg_ws; |
0 | 464 extern int dword_4E98BC_bApplicationActive; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
465 extern std::array<char*, 465> pTransitionStrings; // 4EB080 |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
466 extern std::array<int, 9> dword_4EC268; // weak |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
467 extern std::array<int, 7> dword_4EC28C; // weak |
0 | 468 extern int dword_4EC2A8; // weak |
469 extern int dword_4EC2AC; // weak | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
470 extern std::array<const char*, 25> pPlayerPortraitsNames; |
1091 | 471 |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
472 extern std::array< std::array<unsigned char, 25>, 48> byte_4ECF08; |
1213 | 473 extern std::array<std::array<unsigned char, 8>, 110> SoundSetAction; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
474 extern std::array<__int16, 4> pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
475 extern std::array< std::array<char, 37>, 36> byte_4ED970_skill_learn_ability_by_class_table; |
0 | 476 extern _UNKNOWN unk_4EDF40; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
477 extern std::array<unsigned int, 2> pHiredNPCsIconsOffsetsX; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
478 extern std::array<unsigned int, 2> pHiredNPCsIconsOffsetsY; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
479 extern std::array<int, 2> dword_4EE07C; // weak |
0 | 480 extern _UNKNOWN unk_4EE084; // weak |
1996 | 481 extern std::array<__int16, 101> word_4EE088_sound_ids; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
482 extern std::array<short, 28> word_4EE150; |
0 | 483 extern int dword_4EED78; // weak |
484 extern _UNKNOWN unk_4EED80; // weak | |
485 extern int dword_4EFA80; // weak | |
486 extern int dword_4EFA84; // weak | |
487 extern void *off_4EFDB0; // weak | |
488 extern int dword_4F031C[]; // weak | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
489 extern std::array<const char *, 19> off_4F03B8; // idb |
0 | 490 extern __int16 word_4F0576[]; // weak |
463 | 491 |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
492 extern std::array<int, 32> guild_mambership_flags; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
493 extern std::array<__int16, 49> word_4F0754; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
494 extern std::array<__int16, 54> _4F0882_evt_VAR_PlayerItemInHands_vals; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
495 extern std::array<unsigned short, 6> pMaxLevelPerTrainingHallType; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
496 extern std::array<int, 11> price_for_membership; // weak |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
497 extern std::array<Vec2_int_, 20> pMonsterArenaPlacements; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
498 extern std::array<__int16, 32> word_4F0F30; // weak |
0 | 499 extern double dbl_4F2870; // weak |
500 extern int dword_4F288C; // weak | |
501 extern double dbl_4F5372; // weak | |
502 extern int dword_4F5428[]; // weak | |
503 extern int dword_4F542C[]; // weak | |
504 extern _UNKNOWN crtunk_4F54B8; // weak | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
505 extern std::array<int, 500> ai_array_4F5E68; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
506 extern std::array<int, 500> ai_array_4F6638_actor_ids; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
507 extern std::array<int, 500> ai_near_actors_targets_pid; |
0 | 508 extern int ai_arrays_size; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
509 extern std::array<int, 500> ai_near_actors_distances; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
510 extern std::array<unsigned int, 500> ai_near_actors_ids; |
1279 | 511 extern std::array<int, 182> dword_4F8580; // weak |
0 | 512 extern int dword_4FA9B0[]; // weak |
513 extern int dword_4FA9B4[]; // weak | |
1256 | 514 |
0 | 515 extern _UNKNOWN unk_4FAA20; // weak |
516 extern char byte_4FAA24; // weak | |
1802 | 517 //extern HWND dword_4FAA28; // idb |
1185 | 518 |
1209 | 519 |
1197 | 520 |
0 | 521 extern int dword_505890; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
522 extern std::array<unsigned int, 480> pSRZBufferLineOffsets; |
0 | 523 extern int areWeLoadingTexture; // weak |
1446 | 524 extern std::array<char, 777> books_num_items_per_page; // weak |
0 | 525 extern int dword_506338; // weak |
526 extern int dword_50633C; // idb | |
527 extern signed int sRecoveryTime; // idb | |
528 extern unsigned int uRequiredMana; // idb | |
529 extern int _506348_current_lloyd_playerid; // weak | |
530 extern __int64 qword_506350; // weak | |
531 extern char byte_506360; // weak | |
532 extern int dword_506364; // weak | |
1262 | 533 //extern Texture *dword_50640C[]; // weak |
526 | 534 extern unsigned int uExitCancelTextureId; |
1446 | 535 extern int books_page_number; // number for page in books( ) |
536 extern int books_primary_item_per_page; // number primary item in book page( ) | |
990 | 537 extern int Autonotes_Instructors_page_flag; // dword_50652C |
538 extern int Autonotes_Misc_page_flag; //dword_506530 | |
539 extern int Book_PageBtn6_flag; //dword_506534 | |
540 extern int Book_PageBtn5_flag; //dword_506538 | |
541 extern int Book_PageBtn4_flag; //dword_50653C | |
542 extern int Book_PageBtn3_flag; //dword_506540 | |
992 | 543 extern int BtnDown_flag; //BtnDown_flag |
544 extern int BtnUp_flag; //BtnUp_flag | |
688 | 545 extern int quick_spell_at_page; // weak |
0 | 546 extern char byte_506550; // weak |
1838 | 547 extern std::array<const char *, 5> aMoonPhaseNames; |
981 | 548 extern int _506568_autonote_type; // 506568 |
0 | 549 extern char bRecallingBeacon; // weak |
550 extern int uLastPointedObjectID; // weak | |
551 //extern unsigned __int8 bMonsterInfoUI_bDollInitialized; | |
1838 | 552 extern std::array<const char *, 44> aSpellNames; |
11 | 553 extern int pMainScreenNum; // weak |
1091 | 554 extern int dword_506980_uW; // weak |
555 extern int dword_506984_uZ; // weak | |
556 extern int dword_506988_uY; // weak | |
557 extern int dword_50698C_uX; // weak | |
1031 | 558 extern int uGameMenuUI_CurentlySelectedKeyIdx; // 506E68 |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
559 extern std::array<bool, 28> GameMenuUI_InvaligKeyBindingsFlags; // 506E6C |
1676
483cc7f0d86c
GameMenuUI_DrawKeyBindings() and GameMenuUI_DrawVideoOptions() cleared
Ritor1
parents:
1658
diff
changeset
|
560 extern std::array<unsigned int, 28> pPrevVirtualCidesMapping; |
362 | 561 extern int KeyboardPageNum; // weak |
0 | 562 extern int uRestUI_FoodRequiredToRest; |
563 extern int dword_506F14; // weak | |
1396 | 564 extern int _506F18_num_minutes_to_sleep; // weak |
0 | 565 extern int dword_506F1C; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
566 extern std::array<int, 20> pVisibleWindowsIdxs; // weak |
0 | 567 extern int uNumVisibleWindows; |
568 extern char bFlashHistoryBook; // weak | |
569 extern char bFlashAutonotesBook; // weak | |
570 extern char bFlashQuestBook; // weak | |
569 | 571 extern int uTextureID_PlayerBuff_PainReflection; // weak |
572 extern int uTextureID_PlayerBuff_Hammerhands; // weak | |
573 extern int uTextureID_PlayerBuff_Preservation; // weak | |
574 extern int uTextureID_PlayerBuff_Bless; // weak | |
319 | 575 extern int uTextureID_Btn_QuickReference; // weak |
1507 | 576 extern int uTextureID_Compas; // dword_5079B4 |
0 | 577 extern int dword_5079C8; // weak |
578 extern int dword_5079CC; // weak | |
579 extern int dword_5079D0; // weak | |
1507 | 580 extern int uTextureID_Minimap_Loop; // dword_5079D8 |
319 | 581 extern struct GUIButton *pBtn_ZoomOut; // idb |
582 extern struct GUIButton *pBtn_ZoomIn; // idb | |
0 | 583 extern unsigned int uGameUIFontShadow; |
584 extern unsigned int uGameUIFontMain; | |
585 extern int dword_507B00_spell_info_to_draw_in_popup; // weak | |
1838 | 586 extern std::array<const char *, 12> aMonthNames; |
587 extern std::array<const char *, 7> aDayNames; | |
588 extern std::array<const char *, 9> aSpellSchoolNames; | |
589 extern std::array<const char *, 7> aAttributeNames; | |
0 | 590 extern int dword_507B94; // weak |
591 extern unsigned int uActiveCharacter; | |
592 extern int dword_507BF0_is_there_popup_onscreen; // weak | |
1458 | 593 extern int awards_scroll_bar_created; // weak |
1091 | 594 extern int dword_507CC0_activ_ch; // weak |
569 | 595 extern __int64 GameUI_RightPanel_BookFlashTimer; // weak |
0 | 596 extern int _507CD4_RestUI_hourglass_anim_controller; // weak |
1408 | 597 extern bool OpenedTelekinesis; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
598 extern std::array<int, 50> dword_50B570; // weak |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
599 extern std::array<int, 50> dword_50B638; // weak |
1344 | 600 extern struct stru367 PortalFace; |
601 /*extern int PortalFace.field_0; // weak | |
602 extern int PortalFace.field_38[]; // idb | |
603 extern int PortalFace._view_transformed_ys[]; | |
604 extern int PortalFace.field_128[]; | |
605 extern int PortalFace._view_transformed_zs[]; | |
606 extern int PortalFace.field_218[]; | |
607 extern int PortalFace._view_transformed_xs[]; | |
608 extern int PortalFace._screen_space_y[]; | |
609 extern int PortalFace.field_3E4[]; | |
610 extern int PortalFace.field_2F0[]; // idb | |
611 extern int PortalFace._ys[]; | |
612 extern int PortalFace._ys2[]; // idb | |
613 extern int PortalFace._screen_space_x[]; // idb | |
614 extern int PortalFace.field_3D4[]; // weak | |
615 extern int PortalFace._xs[]; // weak | |
0 | 616 extern int dword_50BAE8[]; // weak |
1344 | 617 extern int PortalFace._xs2[]; // weak |
618 extern int PortalFace._xs3[]; // weak*/ | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
619 extern std::array<int, 100> dword_50BC10; // weak |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
620 extern std::array<int, 100> dword_50BDA0; // weak |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
621 extern std::array<int, 100> dword_50BF30; // weak |
710 | 622 extern char town_portal_caster_id; // weak |
0 | 623 extern int some_active_character; // weak |
624 extern _UNKNOWN unk_50C190; // weak | |
625 extern int dword_50C968; // weak | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
626 extern std::array<unsigned int, 5> pIconIDs_Turn; |
0 | 627 extern unsigned int uIconID_TurnStop; |
628 extern unsigned int uIconID_TurnHour; | |
629 extern int uIconID_CharacterFrame; // idb | |
630 extern unsigned int uIconID_TurnStart; | |
631 extern int dword_50C994; // weak | |
632 extern int dword_50C998_turnbased_icon_1A; // weak | |
633 extern int uSpriteID_Spell11; // idb | |
1682 | 634 extern bool _50C9A0_IsEnchantingInProgress; // weak |
984 | 635 extern int _50C9A8_item_enchantment_timer; // weak |
0 | 636 extern int dword_50C9AC; // weak |
1682 | 637 extern int _50C9D0_AfterEnchClickEventId; // weak |
638 extern int _50C9D4_AfterEnchClickEventSecondParam; // weak | |
639 extern int _50C9D8_AfterEnchClickEventTimeout; // weak | |
0 | 640 extern int dword_50C9DC; // weak |
641 extern struct NPCData *ptr_50C9E0; | |
1012 | 642 //extern int dword_50C9E8; // idb |
643 //extern int dword_50C9EC[]; // 50C9EC | |
437 | 644 extern int dword_50CDC8; |
0 | 645 extern int bProcessorIsNotIntel; // weak |
646 extern Vec3_int_ layingitem_vel_50FDFC; | |
1477
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
1470
diff
changeset
|
647 extern char pStartingMapName[32]; // idb |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
648 extern std::array<unsigned __int8, 5> IsPlayerWearingWatersuit; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
649 extern std::array<char, 54> party_has_equipment; |
1518
091c5eb46a0e
Fix size of byte_5111F6, it must include unk_511206 (as byte).
yoctozepto
parents:
1515
diff
changeset
|
650 extern std::array<char, 17> byte_5111F6; |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
651 extern std::array<unsigned int, 16> papredoll_dbrds; |
1091 | 652 |
0 | 653 extern int bRingsShownInCharScreen; // weak |
654 | |
655 extern unsigned int uNumBlueFacesInBLVMinimap; | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
656 extern std::array<unsigned __int16, 50> pBlueFacesInBLVMinimapIDs; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
657 extern std::array<int, 14> pTextureIDs_PartyBuffIcons; |
569 | 658 extern unsigned int uIconIdx_FlySpell; |
659 extern unsigned int uIconIdx_WaterWalk; | |
0 | 660 extern int dword_576E28; // weak |
1051 | 661 extern int _576E2C_current_minimap_zoom; // weak |
0 | 662 extern __int64 _5773B8_event_timer; // weak |
790 | 663 extern int _5773C0_unused; // weak |
0 | 664 |
629 | 665 |
0 | 666 extern int dword_591084; // weak |
667 extern struct Actor *pDialogue_SpeakingActor; | |
668 extern unsigned int uDialogueType; | |
602 | 669 extern signed int sDialogue_SpeakingActorNPC_ID; |
0 | 670 extern struct LevelDecoration *_591094_decoration; |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
671 extern std::array<char, 200> sHouseName; // idb |
0 | 672 extern int uCurrentHouse_Animation; // weak |
673 extern char *dword_591164_teleport_map_name; // idb | |
674 extern int dword_591168_teleport_speedz; // weak | |
675 extern int dword_59116C_teleport_directionx; // weak | |
676 extern int dword_591170_teleport_directiony; // weak | |
677 extern int dword_591174_teleportz; // weak | |
678 extern int dword_591178_teleporty; // weak | |
679 extern int dword_59117C_teleportx; // weak | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
680 extern std::array<std::array<char, 100>, 6> byte_591180; // idb |
1211 | 681 extern std::array<struct NPCData *, 7> HouseNPCData; //0this array size temporarily increased to 60 from 6 to work aroud house overflow |
1589 | 682 extern GUIButton* HouseNPCPortraitsButtonsList[6]; |
0 | 683 extern struct Texture *pTexture_591428; |
684 extern struct Texture *pTexture_outside; // idb | |
685 extern struct Texture *pTexture_Dialogue_Background; | |
686 extern _UNKNOWN unk_597F10; // weak | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
687 extern std::array<char, 2000> byte_5B0938; |
469 | 688 extern int EvtTargetObj; // weak |
434 | 689 extern int _unused_5B5924_is_travel_ui_drawn; // 005B5924 |
0 | 690 extern int _5B65A8_npcdata_uflags_or_other; // weak |
691 extern int _5B65AC_npcdata_fame_or_other; // weak | |
692 extern int _5B65B0_npcdata_rep_or_other; // weak | |
693 extern int _5B65B4_npcdata_loword_house_or_other; // weak | |
694 extern int _5B65B8_npcdata_hiword_house_or_other; // weak | |
695 extern int dword_5B65BC; // weak | |
696 extern int dword_5B65C0; // weak | |
1825
23deb6b09c8c
cancelEventProcessing to dword_5B65C4_cancelEventProcessing
Grumpy7
parents:
1823
diff
changeset
|
697 extern int dword_5B65C4_cancelEventProcessing; // weak |
336 | 698 extern int dword_5B65C8_timers_count; // weak |
1793
4dee76d79c78
dword_5B65CC to npcIdToDismissAfterDialogue, Party::field_709 to Party::hirelingScrollPosition
Grumpy7
parents:
1783
diff
changeset
|
699 extern int npcIdToDismissAfterDialogue; // weak |
0 | 700 extern int dword_5B65D0_dialogue_actor_npc_id; // weak |
701 extern int dword_5C3418; // weak | |
702 extern int dword_5C341C; // weak | |
520
35f28d4c0ff9
GlobalEventInfo changed to LevelDecoration* activeLevelDecoration
Gloval
parents:
515
diff
changeset
|
703 extern int _5C3420_pDecoration; |
1470 | 704 //extern std::array<char, 777> byte_5C3427; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
705 extern std::array<char, 200> GameUI_Footer_TimedString; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
706 extern std::array<char, 200> pFooterString; |
783 | 707 extern unsigned int GameUI_Footer_TimeLeft; |
708 extern int bForceDrawFooter; // weak | |
0 | 709 extern int dword_5C35C0; // weak |
710 extern int bDialogueUI_InitializeActor_NPC_ID; // weak | |
711 extern int dword_5C35C8; // weak | |
712 extern char *p2DEventsTXT_Raw; | |
629 | 713 |
0 | 714 extern int dword_5C35D4; // weak |
1838 | 715 extern std::array<const char *, 2> aAMPMNames; |
0 | 716 extern char byte_5C45AF[]; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
717 extern std::array<char, 10000> pTmpBuf3; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
718 extern std::array<char, 4096> pFinalMessage; // idb |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
719 extern std::array<char, 2000> pTmpBuf; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
720 extern std::array<char, 2000> pTmpBuf2; |
1453 | 721 extern std::array<char, 100> Journal_limitation_factor; // weak |
0 | 722 extern int ui_current_text_color; // weak |
723 extern __int64 qword_5C6DF0; // weak | |
724 extern int dword_5C6DF8; // weak | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
725 extern std::array<char, 104> item__getname_buffer; // idb |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
726 extern std::array<char *, 36> pClassDescriptions; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
727 extern std::array<char *, 7> pAttributeDescriptions; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
728 extern std::array<char *, 38> pGrandSkillDesc; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
729 extern std::array<char *, 38> pMasterSkillDesc; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
730 extern std::array<char *, 38> pExpertSkillDesc; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
731 extern std::array<char *, 38> pNormalSkillDesc; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
732 extern std::array<char *, 38> pSkillDesc; |
0 | 733 extern char *pHealthPointsAttributeDescription; |
734 extern char *pSpellPointsAttributeDescription; | |
735 extern char *pArmourClassAttributeDescription; | |
736 extern char *pPlayerConditionAttributeDescription; // idb | |
737 extern char *pFastSpellAttributeDescription; | |
738 extern char *pPlayerAgeAttributeDescription; | |
739 extern char *pPlayerLevelAttributeDescription; | |
740 extern char *pPlayerExperienceAttributeDescription; | |
741 extern char *pAttackBonusAttributeDescription; | |
742 extern char *pAttackDamageAttributeDescription; | |
743 extern char *pMissleBonusAttributeDescription; | |
744 extern char *pMissleDamageAttributeDescription; | |
745 extern char *pFireResistanceAttributeDescription; | |
746 extern char *pAirResistanceAttributeDescription; | |
747 extern char *pWaterResistanceAttributeDescription; | |
748 extern char *pEarthResistanceAttributeDescription; | |
749 extern char *pMindResistanceAttributeDescription; | |
750 extern char *pBodyResistanceAttributeDescription; | |
751 extern char *pSkillPointsAttributeDescription; | |
752 extern char *pClassTXT_Raw; | |
753 extern char *pStatsTXT_Raw; | |
754 extern char *pSkillDescTXT_Raw; | |
755 extern struct FactionTable *pFactionTable; | |
1263 | 756 //extern std::array<char, 777> byte_5C8D1A; // weak |
189 | 757 |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
758 extern std::array<char, 777> byte_5E4C15; // weak |
1838 | 759 extern std::array<const char *, 14> pSomeItemsNames; |
189 | 760 |
0 | 761 extern char *pMonstersTXT_Raw; |
762 extern char *pMonsterPlacementTXT_Raw; | |
763 extern char *pSpellsTXT_Raw; | |
764 extern char *pMapStatsTXT_Raw; | |
765 extern char *pHostileTXT_Raw; | |
766 extern char *pPotionsTXT_Raw; | |
767 extern char *pPotionNotesTXT_Raw; | |
233 | 768 |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
769 extern std::array<int, 777> _6807B8_level_decorations_ids; // idb |
0 | 770 extern int _6807E0_num_decorations_with_sounds_6807B8; // weak |
1459 | 771 extern std::array<int, 3000> event_triggers; // 6807E8 |
1503 | 772 extern size_t num_event_triggers; // 6836C8 |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
773 extern std::array<int, 64> dword_69B010; |
0 | 774 extern float flt_69B138_dist; // weak |
775 extern char byte_69BD41_unused; // weak | |
776 extern unsigned int uTextureID_x_u; | |
777 extern unsigned int uTextureID_LS_saveU; | |
778 extern unsigned int uTextureID_LS_loadU; | |
779 extern unsigned int uTextureID_AR_DN_DN; | |
780 extern unsigned int uTextureID_AR_UP_DN; | |
781 extern unsigned int uTextureID_LS_; | |
782 extern unsigned int uTextureID_x_d; | |
783 extern unsigned int uTextureID_save_up; | |
784 extern unsigned int uTextureID_load_up; | |
785 extern unsigned int uTextureID_loadsave; | |
786 extern _UNKNOWN _69FBB4_ptr_iterator_end; // weak | |
787 extern _UNKNOWN unk_6A0758; // weak | |
2 | 788 extern int pSaveListPosition; // weak |
0 | 789 extern unsigned int uLoadGameUI_SelectedSlot; |
790 extern HWND hInsertCDWindow; // idb | |
791 extern int uCPUSpeed; // weak | |
792 extern char cMM7GameCDDriveLetter; // idb | |
793 extern void *ptr_6A0D08; | |
794 extern int _6A0D0C_txt_lod_loading; // weak | |
795 extern int _6A0D10_txt_lod_loading__unused; // weak | |
2006 | 796 extern enum MENU_STATE sCurrentMenuID; |
0 | 797 extern unsigned int uGameState; |
798 extern int uDefaultTravelTime_ByFoot; // weak | |
799 extern int day_attrib; // weak | |
800 extern int day_fogrange_1; // weak | |
801 extern int day_fogrange_2; // weak | |
802 extern struct TileTable *pTileTable; // idb | |
803 extern int texmapping_terrain_subdivsize; // weak | |
804 extern int texmapping_terrain_subdivpow2; // weak | |
805 extern int texmapping_building_subdivsize; // weak | |
806 extern int texmapping_building_subdivpow2; // weak | |
807 extern int mipmapping_building_mm1; // weak | |
808 extern int mipmapping_building_mm2; // weak | |
809 extern int mipmapping_building_mm3; // weak | |
810 extern int mipmapping_terrain_mm1; // weak | |
811 extern int mipmapping_terrain_mm2; // weak | |
812 extern int mipmapping_terrain_mm3; // weak | |
813 extern int outdoor_grid_band_1; // idb | |
814 extern int outdoor_grid_band_2; // idb | |
815 extern int outdoor_grid_band_3; // idb | |
816 extern char outdoor_day_top_r; // weak | |
817 extern char outdoor_day_top_g; // weak | |
818 extern char outdoor_day_top_b; // weak | |
819 extern char outdoor_day_bottom_r; // weak | |
820 extern char outdoor_day_bottom_g; // weak | |
821 extern char outdoor_day_bottom_b; // weak | |
822 extern char outdoor_night_top_r; // weak | |
823 extern char outdoor_night_top_g; // weak | |
824 extern char outdoor_night_top_b; // weak | |
825 extern char outdoor_night_bottom_r; // weak | |
826 extern char outdoor_night_bottom_g; // weak | |
827 extern char outdoor_night_bottom_b; // weak | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
828 extern std::array<char, 777> pDefaultSkyTexture; // idb |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
829 extern std::array<char, 16> byte_6BE124_cfg_textures_DefaultGroundTexture; // idb |
0 | 830 extern int _6BE134_odm_main_tile_group; // weak |
831 extern int dword_6BE138; // weak | |
832 extern int dword_6BE13C_uCurrentlyLoadedLocationID; // weak | |
833 extern float fWalkSpeedMultiplier; // weak | |
834 extern float fBackwardWalkSpeedMultiplier; // weak | |
835 extern float fTurnSpeedMultiplier; // weak | |
836 extern float flt_6BE150_look_up_down_dangle; // weak | |
837 //extern char pMM7WindowClassName[]; // idb | |
838 //extern HINSTANCE hInstance; // idb | |
839 //extern char *pCmdLine; | |
1802 | 840 //extern HWND hWnd; // idb |
841 extern class OSWindow *window; | |
1477
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
1470
diff
changeset
|
842 extern char pCurrentMapName[32]; // idb |
0 | 843 extern unsigned int uLevelMapStatsID; |
2061 | 844 |
2069 | 845 extern bool FORCE_16_BITS; // related to GAME_SETTINGS_INVALID_RESOLUTION |
2061 | 846 #define GAME_SETTINGS_0001 0x0001 |
847 #define GAME_SETTINGS_INVALID_RESOLUTION 0x0002 | |
848 #define GAME_SETTINGS_NO_INTRO 0x0004 | |
849 #define GAME_SETTINGS_NO_LOGO 0x0008 | |
850 #define GAME_SETTINGS_NO_SOUND 0x0010 | |
851 #define GAME_SETTINGS_NO_WALK_SOUND 0x0020 | |
852 #define GAME_SETTINGS_NO_HOUSE_ANIM 0x0040 | |
853 #define GAME_SETTINGS_0080_SKIP_USER_INPUT_THIS_FRAME 0x0080 | |
854 #define GAME_SETTINGS_APP_INACTIVE 0x0100 | |
855 #define GAME_SETTINGS_0200_EVENT_TIMER 0x0200 | |
856 #define GAME_SETTINGS_0400_MISC_TIMER 0x0400 | |
857 #define GAME_SETTINGS_0800 0x0800 | |
858 #define GAME_SETTINGS_1000 0x1000 | |
859 #define GAME_SETTINGS_2000 0x2000 | |
860 #define GAME_SETTINGS_4000 0x4000 | |
861 extern int dword_6BE364_game_settings_1; // GAME_SETTINGS_* | |
862 | |
863 #define DEBUG_SETTINGS_RUN_IN_WIDOW 0x0001 | |
864 #define DEBUG_SETTINGS_0002_SHOW_FR 0x0002 | |
865 #define DEBUG_SETTINGS_NO_ACTORS 0x0004 | |
866 #define DEBUG_SETTINGS_NO_DECORATIONS 0x0008 | |
867 #define DEBUG_SETTINGS_NO_DAMAGE 0x0010 | |
868 extern int dword_6BE368_debug_settings_2; // DEBUG_SETTINGS_* | |
869 | |
0 | 870 extern unsigned __int8 bUseLoResSprites; |
871 extern unsigned __int8 bUseRegistry; | |
872 extern unsigned __int8 bCanLoadFromCD; | |
873 extern int bShowDamage; // idb | |
874 extern unsigned int bAlwaysRun; | |
875 extern unsigned int bFlipOnExit; | |
876 extern int dword_6BE384_2dacceloff; // weak | |
877 extern char byte_6BE388_graphicsmode; // weak | |
878 extern unsigned int uTurnSpeed; | |
879 extern float flt_6BE3A0; // weak | |
880 extern float flt_6BE3A4_debug_recmod1; | |
881 extern float flt_6BE3A8_debug_recmod2; | |
882 extern float flt_6BE3AC_debug_recmod1_x_1_6; | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
883 extern std::array<char, 20> byte_6BE3B0; // idb |
0 | 884 extern char bUnderwater; // weak |
885 extern char bNoNPCHiring; // weak | |
886 extern int _702AC0_unused; // weak | |
887 extern int _702AC4_unused; // weak | |
888 extern char _702ACC_unused; // weak | |
889 extern unsigned int bNoVideo; | |
890 extern bool bNoIntro; | |
891 extern bool bNoLogo; | |
892 extern bool bNoCD; | |
893 extern bool bNoSound; | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
894 extern std::array<int, 100> dword_720020_zvalues; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
895 extern std::array<int, 299> dword_7201B0_zvalues; |
0 | 896 extern int dword_7207F0[]; // idb |
897 extern int uTextureID_720980; // weak | |
898 extern int _720984_unused; // weak | |
899 extern char _72098C_unused; // weak | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
900 extern std::array<__int16, 104> word_7209A0_intercepts_ys_plus_ys; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
901 extern std::array<__int16, 104> word_720A70_intercepts_xs_plus_xs; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
902 extern std::array<__int16, 104> word_720B40_intercepts_zs; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
903 extern std::array<__int16, 102> word_720C10_intercepts_xs; |
0 | 904 extern int dword_720CDC; |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
905 extern std::array<__int16, 777> word_720CE0_ys; // idb |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
906 extern std::array<__int16, 777> word_720DB0_xs; // idb |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
907 extern std::array<int, 20> dword_720E80; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
908 extern std::array<int, 20> dword_720ED0; |
2043
2ccf638342d6
int max_flight_height and GetCeilingHeight function
Ritor1
parents:
2007
diff
changeset
|
909 extern std::array<int, 20> ceiling_height_level; |
2075 | 910 extern std::array<__int16, 104> odm_floor_face_vert_coord_Y; // word_720F70 |
911 extern std::array<__int16, 104> odm_floor_face_vert_coord_X; // word_721040 | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
912 extern std::array<int, 777> dword_721110; // idb |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
913 extern std::array<int, 777> dword_721160; // idb |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
914 extern std::array<int, 20> odm_floor_level; // idb dword_7211B0 |
0 | 915 extern int blv_prev_party_x; // weak |
916 extern int blv_prev_party_z; // weak | |
917 extern int blv_prev_party_y; // weak | |
918 extern char *dword_721660; // idb | |
919 extern char *dword_721664; // idb | |
920 extern char *dword_722F10; // idb | |
1310 | 921 extern std::array<const char *, 513> pQuestTable; |
0 | 922 extern _UNKNOWN unk_723714; // weak |
923 extern char *dword_723718_autonote_related; // idb | |
924 extern int dword_72371C[]; // weak | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
925 extern std::array<const char *, 82> pScrolls; |
0 | 926 extern int dword_723E80_award_related[]; // weak |
927 extern int dword_723E84[]; // weak | |
928 extern int dword_7241C8; // weak | |
629 | 929 |
1838 | 930 extern std::array<const char *, 59> aNPCProfessionNames; |
0 | 931 extern char *pAwardsTXT_Raw; |
932 extern char *pScrollsTXT_Raw; | |
933 extern char *pMerchantsTXT_Raw; | |
1838 | 934 extern std::array<const char *, 7> pMerchantsBuyPhrases; |
935 extern std::array<const char *, 7> pMerchantsSellPhrases; | |
936 extern std::array<const char *, 7> pMerchantsRepairPhrases; | |
937 extern std::array<const char *, 7> pMerchantsIdentifyPhrases; | |
0 | 938 extern char *pTransitionsTXT_Raw; |
939 extern char *pAutonoteTXT_Raw; | |
940 extern char *pQuestsTXT_Raw; | |
67 | 941 extern unsigned int uNumTerrainNormals; |
0 | 942 extern struct Vec3_float_ *pTerrainNormals; |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
943 extern std::array<unsigned short, 128 * 128 * 2> pTerrainNormalIndices; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
944 extern std::array<unsigned int, 128 * 128 * 2> pTerrainSomeOtherData; |
67 | 945 extern char byte_76D5C0; |
946 extern struct unk_F7B60C stru_76D578; | |
947 extern struct unk_F7B60C stru_76D590; | |
948 extern struct unk_F7B60C stru_76D5A8; | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
949 extern std::array<int, 128> terrain_76D5C8; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
950 extern std::array<int, 128> terrain_76D7C8; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
951 extern std::array<int, 128> terrain_76D9C8; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
952 extern std::array<int, 128> terrain_76DBC8; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
953 extern std::array<int, 128> terrain_76DDC8; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
954 extern std::array<int, 128> terrain_76DFC8; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
955 extern std::array<int, 128> terrain_76E1C8; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
956 extern std::array<int, 128> terrain_76E3C8; |
1106
3395579f6c4d
stru6_stru1_indoor_sw_billboard destructor fix, removing "extern" from struct definition, fixing probable typo in SPELL_AIR_SPARKS
Grumpy7
parents:
1094
diff
changeset
|
957 struct unk_F7B60C |
67 | 958 { |
959 int some_data_ptr; // dword @ 000000 | |
960 float flt_000004; | |
961 float flt_000008; | |
962 float flt_00000C; | |
963 float flt_000010; | |
964 char byte_000014; | |
965 char unk_000015[3]; | |
966 }; | |
0 | 967 extern _UNKNOWN unk_801A00; // weak |
968 extern _UNKNOWN unk_801A0C; // weak | |
969 extern char byte_80AA10; // weak | |
970 extern int dword_80AA14; // weak | |
971 extern int dword_80AA18; // weak | |
972 extern int dword_80AA1C; // weak | |
973 extern int dword_80AA20; // weak | |
974 extern unsigned int uNumElementsIn80AA28; | |
1391
cc9a3a24d61d
Moved stru11, stru12 and some SW Rendering stuff to the archives.
Nomad
parents:
1390
diff
changeset
|
975 extern std::array<struct Polygon *, 2000> ptr_80AA28; |
0 | 976 extern _UNKNOWN unk_80D190; // weak |
977 extern int dword_A74C88; // weak | |
978 extern unsigned int uPlayerCreationUI_SkySliderPos; | |
979 extern int uPlayerCreationUI_ArrowAnim; | |
980 extern unsigned int uPlayerCreationUI_SelectedCharacter; | |
981 extern int dword_A74CDC; // weak | |
982 extern struct Texture *pTexture_PlayerFaceMask; | |
983 extern struct Texture *pTexture_PlayerFaceEradicated; | |
984 extern struct Texture *pTexture_PlayerFaceDead; | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
985 extern std::array< std::array<struct Texture *, 56>, 4> pTextures_PlayerFaces; |
0 | 986 extern int dword_A75070; // weak |
987 extern __int64 qword_A750D8; // weak | |
1406 | 988 extern enum PlayerSpeech PlayerSpeechID; |
1407 | 989 extern int uSpeakingCharacter; // weak |
1838 | 990 extern std::array<const char *, 36> pClassNames; |
991 extern std::array<const char *, 19> aCharacterConditionNames; | |
992 extern std::array<const char *, 38> pSkillNames; | |
0 | 993 extern int dword_AE336C; // weak |
994 extern int dword_AE3370; // weak | |
995 extern char byte_AE5B91; // weak | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
996 extern std::array<int, 32> dword_F1B430; // weak |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
997 extern std::array<int, 4> player_levels; |
1739 | 998 extern std::array<__int16, 6> weapons_Ypos; // word_F8B158 |
496 | 999 extern struct Texture *ShopTexture; // idb |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
1000 extern std::array<struct Texture *, 12> ItemsInShopTexture; |
1529 | 1001 extern __int16 bountyHunting_monster_id_for_hunting; // weak |
1002 extern const char *bountyHunting_text; // idb | |
484 | 1003 extern int contract_approved; // weak |
492 | 1004 extern int dword_F8B1AC_award_bit_number; // idb |
0 | 1005 extern int dword_F8B1B0; // weak |
267 | 1006 extern int gold_transaction_amount; // F8B1B4 |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
1007 extern std::array<char *, 4> pShopOptions; |
0 | 1008 extern _UNKNOWN unk_F8B1C8; // weak |
1009 extern int dword_F8B1D8; // weak | |
1010 extern int dword_F8B1DC; // weak | |
1011 extern int dword_F8B1E0; // weak | |
1012 extern int dword_F8B1E4; // weak | |
827 | 1013 extern const char *current_npc_text; // 0xF8B1E8 |
248 | 1014 extern char dialogue_show_profession_details; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
1015 extern std::array<char, 777> byte_F8B1EF; // weak |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
1016 extern std::array<char, 4> byte_F8B1F0; |
0 | 1017 extern int dword_F8B1F4; // weak |
701 | 1018 |
1019 | |
1020 | |
1021 | |
186 | 1022 //extern _UNKNOWN unk_F8BA50; // weak |
0 | 1023 extern char byte_F8BC0C; // weak |
1024 extern int bGameoverLoop; // weak | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
1025 extern std::array<__int16, 104> intersect_face_vertex_coords_list_a; // word_F8BC48 |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
1026 extern std::array<__int16, 104> intersect_face_vertex_coords_list_b; // word_F8BD18 |
0 | 1027 //extern _UNKNOWN unk_F8EA04; // weak |
1028 //extern _UNKNOWN unk_F8F8F8; // weak | |
1029 extern int dword_F93F20; // weak | |
1030 extern int dword_F93F70; // weak | |
1031 | |
363 | 1032 |
0 | 1033 |
1034 | |
1035 | |
1036 | |
1037 | |
1038 | |
1039 | |
1040 | |
1041 | |
1042 | |
1043 | |
1044 | |
1045 | |
1046 //------------------------------------------------------------------------- | |
1047 // Function declarations | |
2000 | 1048 void constructors(); |
307 | 1049 |
1459 | 1050 void init_event_triggers(); |
1051 void check_event_triggers(); | |
189 | 1052 |
698 | 1053 |
701 | 1054 |
475 | 1055 |
1459 | 1056 void ShowIntroVideo_and_LoadingScreen(); |
1057 unsigned int GameOverMenu(void *ecx0); | |
1058 int __fastcall SpawnRandomTreasure(struct MapInfo *a1, struct SpawnPointMM7 *a2); | |
187 | 1059 void DamageMonsterFromParty(signed int a1, unsigned int uActorID_Monster, struct Vec3_int_ *pVelocity); |
0 | 1060 |
1458 | 1061 void MakeActorAIList_ODM(); |
1062 int MakeActorAIList_BLV(); | |
1063 void UpdateActorAI(); | |
1493 | 1064 bool __fastcall sub_4070EF_prolly_detect_player(unsigned int uObjID, unsigned int uObj2ID); |
1458 | 1065 bool __fastcall sub_4075DB(int a1, int a2, int a3, struct BLVFace *a4); |
1066 bool __fastcall sub_4077F1(int a1, int a2, int a3, struct ODMFace *a4, struct BSPVertexBuffer *a5); | |
1067 bool __fastcall sub_407A1C(int x, int z, int y, struct Vec3_int_ v); // idb | |
1068 void InitializeActors(); | |
1069 void InitializeSpriteObjects(); | |
1070 int __fastcall sub_4088E9(int a1, int a2, int a3, int a4, int a5, int a6); | |
1071 unsigned int SearchAliveActors(unsigned int *pTotalActors); | |
1072 unsigned int SearchActorByMonsterID(unsigned int *pTotalActors, int uMonsterID); | |
1073 unsigned int SearchActorByGroup(unsigned int *pTotalActors, unsigned int uGroup); | |
1074 unsigned int SearchActorByID(unsigned int *pTotalActors, unsigned int a2); | |
1075 void PrepareArcomage(); | |
1076 void DoBlt_Copy(unsigned __int16 *pPixels); // idb | |
1077 void __fastcall ZBuffer_Fill(int *pZBuffer, int uTextureId, int iZValue); | |
1078 void __fastcall ZBuffer_DoFill(int *pZBuffer, struct Texture *pTex, int uZValue); | |
1079 void __fastcall ZBuffer_DoFill2(int *pZBuffer, struct Texture *a2, int a3); // idb | |
1080 void SetMoonPhaseNames(); | |
1081 int __fastcall sub_410D99_get_map_index(int a1); | |
1082 void __fastcall LoadThumbnailLloydTexture(unsigned int uSlot, unsigned int uPlayer); | |
1083 void SetAttributeNames(); | |
1084 void uGameUIFontMain_initialize(); | |
1085 void uGameUIFontShadow_initialize(); | |
1729
f44b6e02e81c
pop-up window in character(paperdill) window, alchemy
Ritor1
parents:
1721
diff
changeset
|
1086 void Inventory_ItemPopupAndAlchemy(); |
1802 | 1087 void UI_OnMouseRightClick(struct Vec2_int_ *_this); |
1458 | 1088 void UI_OnMouseLeftClick(int *pXY); // idb |
1507 | 1089 unsigned int UI_GetHealthManaAndOtherQualitiesStringColor(signed int current_pos, signed int base_pos); |
1458 | 1090 unsigned int __fastcall GetSizeInInventorySlots(unsigned int uNumPixels); |
1091 struct GUIButton *__fastcall GUI_HandleHotkey(unsigned __int8 uHotkey); // idb | |
1092 int __fastcall GUI_ReplaceHotkey(unsigned __int8 uOldHotkey, unsigned __int8 uNewHotkey, char bFirstCall); | |
1758
24e756a50073
DrawBuff_remaind_time_string and DrawShops_next_generation_time_string fix and cleared
Ritor1
parents:
1754
diff
changeset
|
1093 void DrawBuff_remaining_time_string(int uY, struct GUIWindow *window, __int64 remaining_time, struct GUIFont *Font); |
1458 | 1094 bool UI_OnKeyDown(unsigned int vkKey); |
1095 void GameUI_DrawItemInfo(struct ItemGen* inspect_item); // idb | |
1699 | 1096 void MonsterPopup_Draw(unsigned int uActorID, struct GUIWindow *window); |
1458 | 1097 void LoadActualSkyFrame(); |
1098 void Sleep6Hours(); | |
1099 void ChestUI_WritePointedObjectStatusString(); | |
1100 void OnChestLeftClick(); | |
1101 void GameUI_WritePointedObjectStatusString(); | |
1102 void __fastcall GameUI_OnPlayerPortraitLeftClick(unsigned int uPlayerID); // idb | |
1103 void OnGameViewportClick(); | |
1104 bool PauseGameDrawing(); | |
1105 void SetUserInterface(enum PartyAlignment alignment, bool bReplace); | |
1106 void reset_some_strus_flt_2Cs(); | |
1107 int __fastcall GetPortalScreenCoord(unsigned int uFaceID); | |
1108 bool PortalFrustrum(int pNumVertices, struct BspRenderer_PortalViewportData *a2, struct BspRenderer_PortalViewportData *near_portal, int uFaceID); | |
1903 | 1109 int ODM_NearClip(unsigned int uVertexID); // idb |
1110 int ODM_FarClip(unsigned int uNumVertices); | |
1458 | 1111 bool __fastcall sub_427769_spell(unsigned int uSpellID); |
1112 void _42777D_CastSpell_UseWand_ShootArrow(int a1, unsigned int uPlayerID, unsigned int a4, __int16 a5, int a6); | |
1113 void _42ECB5_PlayerAttacksActor(); | |
1114 void InitializeTurnBasedAnimations(void *); | |
1115 bool __fastcall sub_42F7EB_DropItemAt(unsigned int uSpriteID, int x, int y, int z, int a4, int count, int a7, unsigned __int16 attributes, ItemGen *a9); | |
1116 void __fastcall sub_42F960_create_object(int x, int y, int z); // idb | |
1117 void CompactLayingItemsList(); | |
1546 | 1118 void _42FA66_do_explosive_impact(int a1, int a2, int a3, int a4, __int16 a5, signed int a6); |
1458 | 1119 bool _42FB5C_check_spell(signed int a1); |
1120 void sub_42FBDD(); | |
1121 void CloseWindowBackground(); | |
1122 void ProcessInputActions(); | |
1123 void GameUI_MsgProc(); | |
1124 void back_to_game(); | |
1125 void GUI_MainMenuMessageProc(); | |
1126 double get_shading_dist_mist(); | |
1127 void Vec3_short__to_RenderVertexSoft(struct RenderVertexSoft *_this, struct Vec3_short_ *a2); | |
1128 void area_of_effect__damage_evaluate(); | |
2006 | 1129 void __fastcall DamagePlayerFromMonster(unsigned int uObjID, int a2, struct Vec3_int_ *pPos, signed int a4); |
1458 | 1130 void __fastcall sub_43A97E(unsigned int uLayingItemID, signed int a2); // idb |
1131 double __fastcall sub_43AE12(signed int a1); | |
1132 int __fastcall _43AFE3_calc_spell_damage(int a1, int a2, signed int a3, int a4); | |
1133 void __fastcall sub_43B057(unsigned int uObjID, unsigned int uActorID, struct Vec3_int_ *pVelocity); | |
2059 | 1134 void ActorDamageFromMonster(signed int attacker_id, unsigned int actor_id, struct Vec3_int_ *pVelocity, signed int a4); |
1458 | 1135 void CharacterUI_LoadPaperdollTextures(); |
1136 int __fastcall GetItemTextureFilename(char *pOut, signed int item_id, int index, int shoulder); | |
1647
511cd6dd1048
_43ED6F_check_party_races to IsDwarfPresentInParty
Grumpy7
parents:
1621
diff
changeset
|
1137 bool IsDwarfPresentInParty(bool b); |
1620
61ea994a1812
sub_43EE77_ProbablyIfUnderwaterSuitIsEquipped to Player::HasUnderwaterSuitEquipped, sub_43EDB9_get_some_race_sex_relation_2 to ShouldLoadTexturesForRaceAndGender, Player_has_item to Player::HasItem
Grumpy7
parents:
1590
diff
changeset
|
1138 bool ShouldLoadTexturesForRaceAndGender(unsigned int _this); |
1458 | 1139 void WetsuitOn(unsigned int uPlayerID); // idb |
1140 void WetsuitOff(unsigned int uPlayerID); | |
1641 | 1141 void __fastcall PrepareDrawLists_BLV(); |
1458 | 1142 void FindBillboardsLightLevels_BLV(); |
1143 int __fastcall _43F55F_get_billboard_light_level(struct RenderBillboard *a1, int uBaseLightLevel); | |
1144 int __fastcall _43F5C8_get_point_light_level_with_respect_to_lights(unsigned int uBaseLightLevel, int uSectorID, float x, float y, float z); | |
1145 void PrepareBspRenderList_BLV(); | |
1544 | 1146 void PrepareDecorationsRenderList_BLV(unsigned int uDecorationID, unsigned int uSectorID); |
1458 | 1147 void PrepareActorRenderList_BLV(); |
1148 void PrepareItemsRenderList_BLV(); | |
1149 void AddBspNodeToRenderList(unsigned int node_id); | |
1150 void __fastcall sub_4406BC(unsigned int node_id, unsigned int uFirstNode); // idb | |
1151 bool sub_44100D(); | |
1152 __int16 __fastcall sub_441A4E(int a1); | |
1153 void DrawBook_Map_sub(unsigned int tl_x, unsigned int tl_y, unsigned int br_x, int br_y, int _48074); // idb | |
1154 void Initialize2DA(); | |
1155 void LoadLevel_InitializeLevelStr(); | |
1156 void OnMapLeave(); | |
1157 void OnMapLoad(); | |
1158 void Level_LoadEvtAndStr(const char *pLevelName); | |
1720 | 1159 const char *GetMapBookHintText();//sub_444564 |
1458 | 1160 char *GetEventHintString(unsigned int uEventID); // idb |
1161 int GetTravelTime(); | |
1162 void __fastcall sub_4451A8_press_any_key(int a1, int a2, int a4); | |
1783 | 1163 unsigned int SkillToMastery(unsigned int skill_value); |
1459 | 1164 unsigned int __fastcall GetSpellColor(signed int a1); |
1165 unsigned short * MakeScreenshot(signed int width, signed int height); | |
1166 void SaveScreenshot(const char *pFilename); | |
1167 void __fastcall LoadGame(unsigned int uSlot); // idb | |
1168 void SaveGame(bool IsAutoSAve, bool NotSaveWorld); | |
1169 void __fastcall DoSavegame(unsigned int uSlot); // idb | |
1170 void TryLoadLevelFromLOD(); | |
1171 void sub_46080D(); | |
1172 bool Initialize_GamesLOD_NewLOD(); | |
1173 void SaveNewGame(); | |
1174 void PrepareToLoadBLV(unsigned int bLoading); | |
1637 | 1175 void __fastcall PrepareToLoadODM(unsigned int bLoading, struct ODMRenderParams *a2); |
1459 | 1176 void _461103_load_level_sub(); |
1177 void MainMenu_Loop(); | |
1178 char sub_4637E0_is_there_popup_onscreen(); | |
1179 void ResetCursor_Palettes_LODs_Level_Audio_SFT_Windows(); | |
1180 void PrepareWorld(unsigned int _0_box_loading_1_fullscreen); | |
1181 void Game_DeinitializeAndTerminate(int exitCode); // idb | |
1182 void FinalInitialization(); | |
1183 char Is_out15odm_underwater(); | |
1184 void SetUnderwaterFog(); | |
1185 void DoPrepareWorld(unsigned int bLoading, int _1_fullscreen_loading_2_box); | |
1186 int __fastcall ReadWindowsRegistryInt(const char *pKey, int uDefValue); // idb | |
1187 void __fastcall WriteWindowsRegistryString(const char *pKey, const char *pString); | |
1188 void __fastcall ReadWindowsRegistryString(const char *pKeyName, char *pOutString, int uBufLen, const char *pDefaultValue); | |
1189 void __fastcall WriteWindowsRegistryInt(const char *pKey, int val); | |
1190 bool __fastcall CheckMM7CD(char c); | |
1191 void SecondaryInitialization(); | |
1192 void CreateAsyncMouse(); | |
1193 void CreateAsyncKeyboard(); | |
1194 void MM6_Initialize(const wchar_t *pIniFilename); | |
1195 void MM7Initialization(); | |
1196 void SetCurrentMenuID(enum MENU_STATE); // idb | |
1197 enum MENU_STATE GetCurrentMenuID(); | |
1198 void CreateMsgScrollWindow(signed int mscroll_id); | |
1199 void free_book_subwindow(); | |
1200 void CreateScrollWindow(); | |
1201 void OnPaperdollLeftClick(); | |
1202 void OnPressSpace(); | |
1203 char __fastcall DoInteractionWithTopmostZObject(int a1, int a2); | |
1204 void OracleDialogue(); | |
1205 void __fastcall ClickNPCTopic(signed int uMessageParam); | |
1206 char * _4B254D_SkillMasteryTeacher(int _this); | |
1207 const char *ContractSelectText(int pEventCode); | |
1634 | 1208 void SimpleHouseDialog(); |
1459 | 1209 void CreateButtonInColumn(int a1, unsigned int a2); |
1210 void FillAviableSkillsToTeach(int _this); | |
1211 void sub_4B3E1E(); | |
1212 void DrawJoinGuildWindow(int pEventCode); | |
1582 | 1213 void __fastcall _4B3FE5_training_dialogue(int a4); |
1459 | 1214 void NPCHireableDialogPrepare(); |
1215 void _4B4224_UpdateNPCTopics(int _this); | |
1216 void __fastcall DrawTextAtStatusBar(const char *Str, int a5); | |
1217 __int64 GetExperienceRequiredForLevel(int a1); | |
1529 | 1218 void CheckBountyRespawnAndAward(); |
1914 | 1219 void Arena_SelectionFightLevel(); |
1459 | 1220 void ArenaFight(); |
1221 void SpellBookGenerator(); | |
1222 void UI_CreateEndConversationButton(); | |
1223 void __fastcall OnSelectShopDialogueOption(signed int uMessageParam); | |
1919 | 1224 int HouseDialogPressCloseBtn(); |
2059 | 1225 bool MerchandiseTest(ItemGen *item, int _2da_idx); |
1459 | 1226 void UIShop_Buy_Identify_Repair(); |
1227 bool __fastcall IsBModelVisible(unsigned int uModelID, int *unused); | |
1637 | 1228 void ODM_LoadAndInitialize(const char *pLevelFilename, struct ODMRenderParams *thisa); |
1459 | 1229 unsigned int GetLevelFogColor(); |
1230 int __fastcall sub_47C3D7_get_fog_related_stuff(int a1, int a2, float a3); | |
1231 int __fastcall GetActorTintColor(int max_dim, int min_dim, float distance, int a4, struct RenderBillboard *a5); | |
1232 unsigned int WorldPosToGridCellX(int); // weak | |
1233 unsigned int WorldPosToGridCellZ(int); // weak | |
1234 int GridCellToWorldPosX(int); // weak | |
1235 int GridCellToWorldPosZ(int); // weak | |
1637 | 1236 void sub_481ED9_MessWithODMRenderParams(); |
1459 | 1237 bool IsTerrainSlopeTooHigh(int pos_x, int pos_y); |
1238 int __fastcall GetTerrainHeightsAroundParty2(int a1, int a2, int *a3, int a4); | |
1239 void sub_487DA9(); | |
1240 double GetFogDensityByTime(struct OutdoorLocation *_this); | |
1241 bool __fastcall HSV2RGB(float *a1, float *a2, float *a3, float a4, float a5, float a6); | |
1242 void __fastcall RGB2HSV(float *a1, float *a2, float a3, float a4, float a5, float *a6); | |
2006 | 1243 signed int ReplaceHSV(unsigned int uColor, float a2, float gamma, float a4); |
1677 | 1244 bool PlayerCreation_Choose4Skills(); |
1459 | 1245 int PlayerCreation_GetUnspentAttributePointCount(); |
1246 void LoadPlayerPortraintsAndVoices(); | |
1677 | 1247 void ReloadPlayerPortraits(int player_id, int face_id); |
1459 | 1248 void sub_491E3A(); |
1249 int CycleCharacter(bool backwards); | |
1250 void __fastcall Rest(unsigned int uHoursToSleep); | |
2060 | 1251 void _493938_regenerate(); |
1459 | 1252 void init_summoned_item(struct stru351_summoned_item *_this, __int64 duration); |
1253 void _494035_timed_effects__water_walking_damage__etc(); | |
1254 unsigned int __fastcall _494820_training_time(unsigned int a1); | |
1255 char *__fastcall sub_495366(unsigned __int8 a1, unsigned __int8 a2); | |
1838 | 1256 const char *GetReputationString(signed int a1); |
1257 char *BuildDialogueString(const char *lpsz, unsigned __int8 uPlayerID, struct ItemGen *a3, char *a4, int a5, __int64 *a6); | |
1459 | 1258 void PlayerCreationUI_Draw(); |
1259 void PlayerCreationUI_Initialize(); | |
1260 void DeleteCCharFont(); | |
1261 bool PlayerCreationUI_Loop(); | |
1262 unsigned int __fastcall GetMaxMipLevels(unsigned int uDim); | |
1263 bool CheckTextureStages(); | |
1264 bool AreRenderSurfacesOk(); | |
1265 unsigned int BlendColors(unsigned int c1, unsigned int c2); // weak | |
1266 void DoRenderBillboards_D3D(); | |
1267 void Present_NoColorKey(); | |
1268 unsigned int ModulateColor(unsigned int diffuse, float multiplier); // idb | |
1269 struct SoundHeader *FindSound_BinSearch(unsigned int uStart, unsigned int uEnd, const char *pName); | |
1270 struct SoundData *LoadSound(const char *pSoundName, struct SoundData *pOutBuff, unsigned int uID); | |
1271 int __fastcall sub_4AAEA6_transform(struct RenderVertexSoft *a1); | |
1272 int __fastcall sub_4AB66C(int, int); // weak | |
1273 int GetSoundStrengthByDistanceFromParty(int x, int y, int z); | |
1274 struct _DIG_DRIVER *Audio_GetFirstHardwareDigitalDriver(void); | |
1275 void PlayLevelMusic(); | |
1276 unsigned int __fastcall sub_4B0E07(unsigned int uFaceID); // idb | |
1754 | 1277 void sub_4B1447_party_fine(int a1, int a2, int a3); |
1459 | 1278 void sub_4B1523(int *_this); |
1279 void ShowPopupShopItem(); | |
1280 void RestAndHeal(__int64 uNumMinutes); // idb | |
1281 void GetHouseGoodbyeSpeech(); | |
1282 int __fastcall _46A6AC_spell_render(int a1, int a2, int a3); | |
1283 int __fastcall _46A6AC_spell_render_d3d(int a1, int a2, int a3); | |
1284 int __fastcall _46A89E_immolation_effect(int a1, int a2, int a3); | |
1285 int sub_46A99B(); | |
1286 unsigned int GetGravityStrength(); | |
1287 void UpdateUserInput_and_MapSpecificStuff(); | |
1288 void BLV_UpdateUserInputAndOther(); | |
1289 void ODM_UpdateUserInputAndOther(); | |
1290 bool __fastcall _46BFFA_check_object_intercept(unsigned int uLayingItemID, signed int a2); | |
1291 int BLV_GetFloorLevel(int x, int y, int z, unsigned int uSectorID, unsigned int *pFaceID); | |
1292 int ODM_GetFloorLevel(int X, signed int Y, int Z, int, int *pOnWater, int *bmodel_pid, int bWaterWalk); | |
2043
2ccf638342d6
int max_flight_height and GetCeilingHeight function
Ritor1
parents:
2007
diff
changeset
|
1293 int GetCeilingHeight(int Party_X, signed int Party_Y, int Party_ZHeight, int pFaceID); |
1459 | 1294 void ODM_GetTerrainNormalAt(int pos_x, int pos_z, Vec3_int_ *out); |
1295 unsigned int __fastcall sub_46DEF2(signed int a2, unsigned int uLayingItemID); | |
1296 void _46E0B2_collide_against_decorations(); | |
1297 void __fastcall _46E26D_collide_against_sprites(signed int a1, signed int a2); | |
1298 int _46E44E_collide_against_faces_and_portals(unsigned int b1); // idb | |
1299 int __fastcall _46E889_collide_against_bmodels(unsigned int ecx0); | |
1300 int collide_against_floor(int x, int y, int z, unsigned int *pSectorID, unsigned int *pFaceID); // idb | |
1301 void __fastcall _46ED8A_collide_against_sprite_objects(unsigned int _this); | |
1302 int _46EF01_collision_chech_player(int a1); // idb | |
1303 int _46F04E_collide_against_portals(); | |
1304 void BLV_UpdateDoors(); | |
1305 void UpdateActors_BLV(); | |
1306 void UpdateActors_ODM(); | |
1307 void UpdateObjects(); | |
1308 int collide_against_floor_approximate(int x, int y, int z, unsigned int *pSectorID, unsigned int *pFaceID); // idb | |
1309 void BLV_ProcessPartyActions(); | |
1310 void ODM_ProcessPartyActions(); | |
2085 | 1311 bool sub_47531C(int a1, int *a2, int pos_x, int pos_y, int pos_z, int dir_x, int dir_y, int dir_z, struct BLVFace *face, int a10); |
1312 bool sub_4754BF(int a1, int *a2, int X, int Y, int Z, int dir_x, int dir_y, int dir_z, struct BLVFace *face, int a10, int a11); | |
1459 | 1313 int sub_475665(struct BLVFace *_this, int a2, __int16 a3); |
1314 bool __fastcall sub_4759C9(struct BLVFace *a1, int a2, int a3, __int16 a4); | |
1315 bool __fastcall sub_475D85(Vec3_int_ *a1, Vec3_int_ *a2, int *a3, struct BLVFace *a4); | |
1316 bool __fastcall sub_475F30(int *a1, struct BLVFace *a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9); | |
1317 void sub_4452BB(); | |
1318 const char *GetProfessionActionText(int a1); | |
1319 struct NPCData *__fastcall GetNPCData(signed int npcid); | |
1320 struct NPCData * GetNewNPCData(signed int npcid, int* npc_indx); | |
1321 int __fastcall GetGreetType(signed int SpeakingNPC_ID); | |
1322 void DialogueEnding(); | |
1323 void PrepareHouse(enum HOUSE_ID house); // idb | |
1324 bool EnterHouse(enum HOUSE_ID uHouseID); | |
1325 int sub_4465DF_check_season(int a1); | |
1326 int __fastcall IsActorAlive(unsigned int uType, unsigned int uParam, unsigned int uNumAlive); // idb | |
1327 int NPC_EventProcessor(int npc_event_id, int entry_line = 0); | |
1328 void __fastcall sub_448518_npc_set_item(int npc, unsigned int item, int a3); | |
1329 void __fastcall sub_44861E_set_texture(unsigned int uFaceCog, const char *pFilename); | |
1515 | 1330 void __fastcall SetDecorationSprite(uint16_t uCog, bool bHide, const char *pFileName); // idb |
1459 | 1331 void __fastcall sub_44892E_set_faces_bit(int sCogNumber, int bit, int on); |
1332 void __fastcall ToggleActorGroupFlag(unsigned int uGroupID, unsigned int uFlag, unsigned int bToggle); | |
1333 void GameUI_StatusBar_UpdateTimedString(unsigned int bForceHide); // idb | |
1334 void OnTimer(int); | |
1335 void __fastcall sub_448CF4_spawn_monsters(__int16 typeindex, __int16 level, int count, int x, int y, int z, int group, unsigned int uUniqueName); | |
1519 | 1336 void __fastcall EventCastSpell(int uSpellID, int uSkillLevel, int uSkill, int fromx, int fromy, int fromz, int tox, int toy, int toz);//sub_448DF8 |
2085 | 1337 void Door_switch_animation(unsigned int uDoorID, int a2); // idb: sub_449A49 |
1459 | 1338 bool _449B57_test_bit(unsigned __int8 *a1, __int16 a2); |
1339 void _449B7E_toggle_bit(unsigned char *pArray, __int16 a2, unsigned __int16 bToggle); // idb | |
1340 void ShowStatusBarString(const char *pString, unsigned int uNumSeconds); | |
1341 void ShowNothingHereStatus(); | |
1342 int const_2(); | |
1343 bool TeleportToNWCDungeon(); | |
1344 void SpawnEncounter(struct MapInfo *pMapInfo, struct SpawnPointMM7 *spawn, int a3, int a4, int a5); | |
1345 int __fastcall sub_44FA4C_spawn_light_elemental(int a1, int a2, int a3); | |
1346 int __fastcall sub_450521_ProllyDropItemAt(int ecx0, signed int a2, int a3, int a4, int a5, unsigned __int16 a6); | |
1347 int __fastcall _45063B_spawn_some_monster(struct MapInfo *a1, int a2); | |
1348 void RespawnGlobalDecorations(); | |
1349 bool __fastcall SpawnActor(unsigned int uMonsterID); | |
1350 int GetAlertStatus(); | |
1351 int integer_sqrt(int val); | |
1352 int __fastcall MakeColorMaskFromBitDepth(int a1); | |
1353 void __fastcall fill_pixels_fast(unsigned int a1, unsigned __int16 *pPixels, unsigned int uNumPixels); | |
1354 int __fastcall GetDiceResult(unsigned int uNumDice, unsigned int uDiceSides); // idb | |
1355 inline int round(float x) { return (int)floor(x + 0.5f); } | |
1356 inline void __fastcall memset32(void *ptr, unsigned __int32 value, int count) | |
1357 { | |
1980 | 1358 unsigned __int32* p = (unsigned __int32 *)ptr; |
1459 | 1359 for ( int i=0; i < count; i++ ) |
1360 *p++ = value; | |
1361 } | |
1640
afc1c3514dd5
Some common code from ODM and BLV RenderParams moved to IndoorCameraD3D
Nomad
parents:
1639
diff
changeset
|
1362 //inline void __fastcall j_memset32(int a2, void *a1, unsigned int a3) {memset32(a1, a2, a3);} |
2007
664146d9b101
moving sub_4C023F constructor, after pRendererD3D initialization
zipi
parents:
2006
diff
changeset
|
1363 void __cdecl sub_4C023F(); |
0 | 1364 #define ErrD3D(hr) do {extern void ErrHR(HRESULT, const char *, const char *, const char *, int); ErrHR(hr, "Direct3D", __FUNCTION__, __FILE__, __LINE__);} while(0) |
1365 | |
1366 | |
1367 namespace zlib | |
1368 { | |
1369 int MemZip(void *dest, unsigned int *destLen, void *source, unsigned int sourceLen); | |
1370 int MemUnzip(void *dest, unsigned int *destLen, const void *source, unsigned int sourceLen); | |
1371 }; |