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