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