Mercurial > mm7
annotate mm7_data.h @ 2459:e5c88c2b02ab
Audio_GetFirstHardwareDigitalDriver
author | Ritor1 |
---|---|
date | Wed, 30 Jul 2014 11:19:53 +0600 |
parents | d922225a6081 |
children | 0f17a30149ec |
rev | line source |
---|---|
0 | 1 #pragma once |
2 #include <string> | |
1016 | 3 #include "VectorTypes.h" |
0 | 4 #include "OSAPI.h" |
1202 | 5 #include <array> |
1657
51a74615d956
DamagePlayerFromMonster continuing cleanup, part 3
Grumpy7
parents:
1650
diff
changeset
|
6 #include <assert.h> |
1708
f8414042db1f
Moving NZIArray to a separate class, fixing a few inventory bugs
Grumpy7
parents:
1699
diff
changeset
|
7 #include "NZIArray.h" |
1641 | 8 |
2154 | 9 //typedef char _UNKNOWN; |
0 | 10 typedef unsigned int uint; |
11 | |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 | |
26 | |
27 #if defined(__GNUC__) | |
28 typedef long long ll; | |
29 typedef unsigned long long ull; | |
30 #define __int64 long long | |
31 #define __int32 int | |
32 #define __int16 short | |
33 #define __int8 char | |
34 #define MAKELL(num) num ## LL | |
35 #define FMT_64 "ll" | |
36 #elif defined(_MSC_VER) | |
37 typedef __int64 ll; | |
38 typedef unsigned __int64 ull; | |
39 #define MAKELL(num) num ## i64 | |
40 #define FMT_64 "I64" | |
41 #elif defined (__BORLANDC__) | |
42 typedef __int64 ll; | |
43 typedef unsigned __int64 ull; | |
44 #define MAKELL(num) num ## i64 | |
45 #define FMT_64 "L" | |
46 #else | |
47 #error "unknown compiler" | |
48 #endif | |
49 typedef unsigned int uint; | |
50 typedef unsigned char uchar; | |
51 typedef unsigned short ushort; | |
52 typedef unsigned long ulong; | |
53 | |
54 typedef char int8; | |
55 typedef signed char sint8; | |
56 typedef unsigned char uint8; | |
57 typedef short int16; | |
58 typedef signed short sint16; | |
59 typedef unsigned short uint16; | |
60 typedef int int32; | |
61 typedef signed int sint32; | |
62 typedef unsigned int uint32; | |
63 typedef ll int64; | |
64 typedef ll sint64; | |
65 typedef ull uint64; | |
66 | |
67 // Partially defined types: | |
68 #define _BYTE uint8 | |
69 #define _WORD uint16 | |
70 #define _DWORD uint32 | |
71 #define _QWORD uint64 | |
72 #if !defined(_MSC_VER) | |
73 #define _LONGLONG __int128 | |
74 #endif | |
75 | |
76 #ifndef _WINDOWS_ | |
77 typedef int8 BYTE; | |
78 typedef int16 WORD; | |
79 typedef int32 DWORD; | |
80 typedef int32 LONG; | |
81 #endif | |
82 typedef int64 QWORD; | |
83 #ifndef __cplusplus | |
84 typedef int bool; // we want to use bool in our C programs | |
85 #endif | |
86 | |
87 // Some convenience macros to make partial accesses nicer | |
88 // first unsigned macros: | |
1165
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
89 #ifdef HIBYTE |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
90 #undef HIBYTE |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
91 #endif // HIBYTE |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
92 #ifdef HIWORD |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
93 #undef HIWORD |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
94 #endif // HIWORD |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
95 #ifdef LOBYTE |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
96 #undef LOBYTE |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
97 #endif // LOBYTE |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
98 #ifdef LOWORD |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
99 #undef LOWORD |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
100 #endif // LOWORD |
29a8defbad9e
temporary _CRT_SECURE_NO_WARNINGS to remove some warnings
Grumpy7
parents:
1160
diff
changeset
|
101 |
0 | 102 #define LOBYTE(x) (*((_BYTE*)&(x))) // low byte |
103 #define LOWORD(x) (*((_WORD*)&(x))) // low word | |
104 #define LODWORD(x) (*((_DWORD*)&(x))) // low dword | |
105 #define HIBYTE(x) (*((_BYTE*)&(x)+1)) | |
106 #define HIWORD(x) (*((_WORD*)&(x)+1)) | |
107 #define HIDWORD(x) (*((_DWORD*)&(x)+1)) | |
108 #define BYTEn(x, n) (*((_BYTE*)&(x)+n)) | |
109 #define WORDn(x, n) (*((_WORD*)&(x)+n)) | |
110 #define BYTE1(x) BYTEn(x, 1) // byte 1 (counting from 0) | |
111 #define BYTE2(x) BYTEn(x, 2) | |
112 #define BYTE3(x) BYTEn(x, 3) | |
113 #define BYTE4(x) BYTEn(x, 4) | |
114 #define BYTE5(x) BYTEn(x, 5) | |
115 #define BYTE6(x) BYTEn(x, 6) | |
116 #define BYTE7(x) BYTEn(x, 7) | |
117 #define BYTE8(x) BYTEn(x, 8) | |
118 #define BYTE9(x) BYTEn(x, 9) | |
119 #define BYTE10(x) BYTEn(x, 10) | |
120 #define BYTE11(x) BYTEn(x, 11) | |
121 #define BYTE12(x) BYTEn(x, 12) | |
122 #define BYTE13(x) BYTEn(x, 13) | |
123 #define BYTE14(x) BYTEn(x, 14) | |
124 #define BYTE15(x) BYTEn(x, 15) | |
125 #define WORD1(x) WORDn(x, 1) | |
126 #define WORD2(x) WORDn(x, 2) // third word of the object, unsigned | |
127 #define WORD3(x) WORDn(x, 3) | |
128 #define WORD4(x) WORDn(x, 4) | |
129 #define WORD5(x) WORDn(x, 5) | |
130 #define WORD6(x) WORDn(x, 6) | |
131 #define WORD7(x) WORDn(x, 7) | |
132 | |
133 // now signed macros (the same but with sign extension) | |
134 #define SLOBYTE(x) (*((int8*)&(x))) | |
135 #define SLOWORD(x) (*((int16*)&(x))) | |
136 #define SLODWORD(x) (*((int32*)&(x))) | |
137 #define SHIBYTE(x) (*((int8*)&(x)+1)) | |
138 #define SHIWORD(x) (*((int16*)&(x)+1)) | |
139 #define SHIDWORD(x) (*((int32*)&(x)+1)) | |
140 #define SBYTEn(x, n) (*((int8*)&(x)+n)) | |
141 #define SWORDn(x, n) (*((int16*)&(x)+n)) | |
142 #define SBYTE1(x) SBYTEn(x, 1) | |
143 #define SBYTE2(x) SBYTEn(x, 2) | |
144 #define SBYTE3(x) SBYTEn(x, 3) | |
145 #define SBYTE4(x) SBYTEn(x, 4) | |
146 #define SBYTE5(x) SBYTEn(x, 5) | |
147 #define SBYTE6(x) SBYTEn(x, 6) | |
148 #define SBYTE7(x) SBYTEn(x, 7) | |
149 #define SBYTE8(x) SBYTEn(x, 8) | |
150 #define SBYTE9(x) SBYTEn(x, 9) | |
151 #define SBYTE10(x) SBYTEn(x, 10) | |
152 #define SBYTE11(x) SBYTEn(x, 11) | |
153 #define SBYTE12(x) SBYTEn(x, 12) | |
154 #define SBYTE13(x) SBYTEn(x, 13) | |
155 #define SBYTE14(x) SBYTEn(x, 14) | |
156 #define SBYTE15(x) SBYTEn(x, 15) | |
157 #define SWORD1(x) SWORDn(x, 1) | |
158 #define SWORD2(x) SWORDn(x, 2) | |
159 #define SWORD3(x) SWORDn(x, 3) | |
160 #define SWORD4(x) SWORDn(x, 4) | |
161 #define SWORD5(x) SWORDn(x, 5) | |
162 #define SWORD6(x) SWORDn(x, 6) | |
163 #define SWORD7(x) SWORDn(x, 7) | |
164 | |
165 | |
166 | |
167 // Generate a reference to pair of operands | |
168 template<class T> int16 __PAIR__( int8 high, T low) { return ((( int16)high) << sizeof(high)*8) | uint8(low); } | |
169 template<class T> int32 __PAIR__( int16 high, T low) { return ((( int32)high) << sizeof(high)*8) | uint16(low); } | |
170 template<class T> int64 __PAIR__( int32 high, T low) { return ((( int64)high) << sizeof(high)*8) | uint32(low); } | |
171 template<class T> uint16 __PAIR__(uint8 high, T low) { return (((uint16)high) << sizeof(high)*8) | uint8(low); } | |
172 template<class T> uint32 __PAIR__(uint16 high, T low) { return (((uint32)high) << sizeof(high)*8) | uint16(low); } | |
173 template<class T> uint64 __PAIR__(uint32 high, T low) { return (((uint64)high) << sizeof(high)*8) | uint32(low); } | |
174 | |
175 // rotate left | |
176 template<class T> T __ROL__(T value, uint count) | |
177 { | |
178 const uint nbits = sizeof(T) * 8; | |
179 count %= nbits; | |
180 | |
181 T high = value >> (nbits - count); | |
182 value <<= count; | |
183 value |= high; | |
184 return value; | |
185 } | |
186 | |
187 // rotate right | |
188 template<class T> T __ROR__(T value, uint count) | |
189 { | |
190 const uint nbits = sizeof(T) * 8; | |
191 count %= nbits; | |
192 | |
193 T low = value << (nbits - count); | |
194 value >>= count; | |
195 value |= low; | |
196 return value; | |
197 } | |
198 | |
199 // carry flag of left shift | |
200 template<class T> int8 __MKCSHL__(T value, uint count) | |
201 { | |
202 const uint nbits = sizeof(T) * 8; | |
203 count %= nbits; | |
204 | |
205 return (value >> (nbits-count)) & 1; | |
206 } | |
207 | |
208 // carry flag of right shift | |
209 template<class T> int8 __MKCSHR__(T value, uint count) | |
210 { | |
211 return (value >> (count-1)) & 1; | |
212 } | |
213 | |
214 // sign flag | |
215 template<class T> int8 __SETS__(T x) | |
216 { | |
217 if ( sizeof(T) == 1 ) | |
218 return int8(x) < 0; | |
219 if ( sizeof(T) == 2 ) | |
220 return int16(x) < 0; | |
221 if ( sizeof(T) == 4 ) | |
222 return int32(x) < 0; | |
223 return int64(x) < 0; | |
224 } | |
225 | |
226 // overflow flag of subtraction (x-y) | |
227 template<class T, class U> int8 __OFSUB__(T x, U y) | |
228 { | |
229 if ( sizeof(T) < sizeof(U) ) | |
230 { | |
231 U x2 = x; | |
232 int8 sx = __SETS__(x2); | |
233 return (sx ^ __SETS__(y)) & (sx ^ __SETS__(x2-y)); | |
234 } | |
235 else | |
236 { | |
237 T y2 = y; | |
238 int8 sx = __SETS__(x); | |
239 return (sx ^ __SETS__(y2)) & (sx ^ __SETS__(x-y2)); | |
240 } | |
241 } | |
242 | |
243 // overflow flag of addition (x+y) | |
244 template<class T, class U> int8 __OFADD__(T x, U y) | |
245 { | |
246 if ( sizeof(T) < sizeof(U) ) | |
247 { | |
248 U x2 = x; | |
249 int8 sx = __SETS__(x2); | |
250 return ((1 ^ sx) ^ __SETS__(y)) & (sx ^ __SETS__(x2+y)); | |
251 } | |
252 else | |
253 { | |
254 T y2 = y; | |
255 int8 sx = __SETS__(x); | |
256 return ((1 ^ sx) ^ __SETS__(y2)) & (sx ^ __SETS__(x+y2)); | |
257 } | |
258 } | |
259 | |
260 // carry flag of subtraction (x-y) | |
261 template<class T, class U> int8 __CFSUB__(T x, U y) | |
262 { | |
263 int size = sizeof(T) > sizeof(U) ? sizeof(T) : sizeof(U); | |
264 if ( size == 1 ) | |
265 return uint8(x) < uint8(y); | |
266 if ( size == 2 ) | |
267 return uint16(x) < uint16(y); | |
268 if ( size == 4 ) | |
269 return uint32(x) < uint32(y); | |
270 return uint64(x) < uint64(y); | |
271 } | |
272 | |
273 // carry flag of addition (x+y) | |
274 template<class T, class U> int8 __CFADD__(T x, U y) | |
275 { | |
276 int size = sizeof(T) > sizeof(U) ? sizeof(T) : sizeof(U); | |
277 if ( size == 1 ) | |
278 return uint8(x) > uint8(x+y); | |
279 if ( size == 2 ) | |
280 return uint16(x) > uint16(x+y); | |
281 if ( size == 4 ) | |
282 return uint32(x) > uint32(x+y); | |
283 return uint64(x) > uint64(x+y); | |
284 } | |
285 | |
286 | |
287 //------------------------------------------------------------------------- | |
288 // Data declarations | |
289 | |
351 | 290 extern int game_starting_year; |
2425 | 291 extern unsigned int game_viewport_width; |
292 extern unsigned int game_viewport_height; | |
819 | 293 extern int game_viewport_x; |
294 extern int game_viewport_y; | |
295 extern int game_viewport_z; | |
296 extern int game_viewport_w; | |
351 | 297 |
0 | 298 extern int pWindowList_at_506F50_minus1_indexing[1]; |
299 extern int dword_4C9890[10]; // weak | |
300 extern int dword_4C9920[16]; // weak | |
301 extern char byte_4D864C; // weak | |
302 extern float flt_4D86CC; // weak | |
303 extern int dword_4D86D8; // weak | |
1185 | 304 |
1183 | 305 |
0 | 306 extern float flt_4D84E8; |
1183 | 307 |
227 | 308 extern int pCurrentScreen; // 004E28F8 |
0 | 309 extern unsigned int uGammaPos; |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
310 extern std::array<int, 8> BtnTurnCoord; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
311 extern std::array<__int16, 4> RightClickPortraitXmin; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
312 extern std::array<__int16, 4> RightClickPortraitXmax; |
1091 | 313 //extern int pArmorSkills[5]; |
314 //extern int pWeaponSkills[9]; | |
315 //extern int pMiscSkills[12]; | |
316 //extern int pMagicSkills[9]; | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
317 extern std::array<unsigned int, 4> pHealthBarPos; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
318 extern std::array<unsigned int, 4> pManaBarPos; |
1268 | 319 //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
|
320 extern std::array<char, 88> monster_popup_y_offsets; // weak |
649 | 321 extern unsigned char hourglass_icon_idx; // weak |
526 | 322 |
948 | 323 |
46 | 324 extern const char *format_4E2D80; |
0 | 325 extern char format_4E2D90[8]; |
900 | 326 extern const char *format_4E2DE8; // idb |
46 | 327 extern const char *format_4E2E00; // idb |
328 extern const char *format_4E2E10; // format text of resistance in Stats screen | |
0 | 329 extern int dword_4E455C; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
330 extern std::array<int, 6> dword_4E4560; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
331 extern std::array<int, 6> dword_4E4578; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
332 extern std::array<int, 6> dword_4E4590; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
333 extern std::array<int, 6> dword_4E45A8; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
334 extern std::array<float, 10> flt_4E4A80; |
1091 | 335 |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
336 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
|
337 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
|
338 extern std::array<unsigned __int8, 14> pPartySpellbuffsUI_smthns; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
339 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
|
340 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
|
341 extern std::array<const char *, 11> pHouse_ExitPictures; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
342 extern std::array<const char *, 11> _4E6BDC_loc_names; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
343 extern std::array<__int16, 11> word_4E8152; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
344 extern std::array< std::array<char, 14>, 7> byte_4E8168; |
2154 | 345 extern char _4E94D0_light_type; // weak |
0 | 346 extern char _4E94D2_light_type; // weak |
2154 | 347 extern char _4E94D3_light_type; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
348 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
|
349 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
|
350 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
|
351 extern std::array<unsigned int, 2> saveload_dlg_ws; |
0 | 352 extern int dword_4E98BC_bApplicationActive; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
353 extern std::array<char*, 465> pTransitionStrings; // 4EB080 |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
354 extern std::array<int, 9> dword_4EC268; // weak |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
355 extern std::array<int, 7> dword_4EC28C; // weak |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
356 extern std::array<const char*, 25> pPlayerPortraitsNames; |
1091 | 357 |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
358 extern std::array< std::array<unsigned char, 25>, 48> byte_4ECF08; |
1213 | 359 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
|
360 extern std::array<__int16, 4> pPlayerPortraitsXCoords_For_PlayerBuffAnimsDrawing; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
361 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
|
362 extern std::array<unsigned int, 2> pHiredNPCsIconsOffsetsX; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
363 extern std::array<unsigned int, 2> pHiredNPCsIconsOffsetsY; |
2182 | 364 extern std::array<int, 2> Party_Spec_Motion_status_ids; //dword_4EE07C |
1996 | 365 extern std::array<__int16, 101> word_4EE088_sound_ids; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
366 extern std::array<short, 28> word_4EE150; |
2132 | 367 extern int ScreenshotFileNumber; // dword_4EFA80 |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
368 extern std::array<const char *, 19> off_4F03B8; // idb |
0 | 369 extern __int16 word_4F0576[]; // weak |
463 | 370 |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
371 extern std::array<int, 32> guild_mambership_flags; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
372 extern std::array<__int16, 49> word_4F0754; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
373 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
|
374 extern std::array<unsigned short, 6> pMaxLevelPerTrainingHallType; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
375 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
|
376 extern std::array<__int16, 32> word_4F0F30; // weak |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
377 extern std::array<int, 500> ai_array_4F5E68; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
378 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
|
379 extern std::array<int, 500> ai_near_actors_targets_pid; |
0 | 380 extern int ai_arrays_size; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
381 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
|
382 extern std::array<unsigned int, 500> ai_near_actors_ids; |
1279 | 383 extern std::array<int, 182> dword_4F8580; // weak |
0 | 384 extern int dword_4FA9B0[]; // weak |
385 extern int dword_4FA9B4[]; // weak | |
1256 | 386 |
0 | 387 extern char byte_4FAA24; // weak |
1802 | 388 //extern HWND dword_4FAA28; // idb |
1185 | 389 |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
390 extern std::array<unsigned int, 480> pSRZBufferLineOffsets; |
0 | 391 extern int areWeLoadingTexture; // weak |
1446 | 392 extern std::array<char, 777> books_num_items_per_page; // weak |
2185 | 393 extern int lloyds_beacon_spell_id; // dword_506338 |
394 extern int lloyds_beacon_sound_id; // dword_50633C | |
0 | 395 extern signed int sRecoveryTime; // idb |
396 extern unsigned int uRequiredMana; // idb | |
397 extern int _506348_current_lloyd_playerid; // weak | |
2185 | 398 extern __int64 lloyds_beacon_spell_level; // qword_506350 |
0 | 399 extern char byte_506360; // weak |
400 extern int dword_506364; // weak | |
1262 | 401 //extern Texture *dword_50640C[]; // weak |
526 | 402 extern unsigned int uExitCancelTextureId; |
1446 | 403 extern int books_page_number; // number for page in books( ) |
404 extern int books_primary_item_per_page; // number primary item in book page( ) | |
990 | 405 extern int Autonotes_Instructors_page_flag; // dword_50652C |
406 extern int Autonotes_Misc_page_flag; //dword_506530 | |
407 extern int Book_PageBtn6_flag; //dword_506534 | |
408 extern int Book_PageBtn5_flag; //dword_506538 | |
409 extern int Book_PageBtn4_flag; //dword_50653C | |
410 extern int Book_PageBtn3_flag; //dword_506540 | |
992 | 411 extern int BtnDown_flag; //BtnDown_flag |
412 extern int BtnUp_flag; //BtnUp_flag | |
688 | 413 extern int quick_spell_at_page; // weak |
0 | 414 extern char byte_506550; // weak |
1838 | 415 extern std::array<const char *, 5> aMoonPhaseNames; |
981 | 416 extern int _506568_autonote_type; // 506568 |
0 | 417 extern char bRecallingBeacon; // weak |
418 extern int uLastPointedObjectID; // weak | |
419 //extern unsigned __int8 bMonsterInfoUI_bDollInitialized; | |
1838 | 420 extern std::array<const char *, 44> aSpellNames; |
11 | 421 extern int pMainScreenNum; // weak |
1091 | 422 extern int dword_506980_uW; // weak |
423 extern int dword_506984_uZ; // weak | |
424 extern int dword_506988_uY; // weak | |
425 extern int dword_50698C_uX; // weak | |
1031 | 426 extern int uGameMenuUI_CurentlySelectedKeyIdx; // 506E68 |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
427 extern std::array<bool, 28> GameMenuUI_InvaligKeyBindingsFlags; // 506E6C |
1676
483cc7f0d86c
GameMenuUI_DrawKeyBindings() and GameMenuUI_DrawVideoOptions() cleared
Ritor1
parents:
1658
diff
changeset
|
428 extern std::array<unsigned int, 28> pPrevVirtualCidesMapping; |
362 | 429 extern int KeyboardPageNum; // weak |
0 | 430 extern int uRestUI_FoodRequiredToRest; |
431 extern int dword_506F14; // weak | |
1396 | 432 extern int _506F18_num_minutes_to_sleep; // weak |
0 | 433 extern int dword_506F1C; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
434 extern std::array<int, 20> pVisibleWindowsIdxs; // weak |
0 | 435 extern int uNumVisibleWindows; |
436 extern char bFlashHistoryBook; // weak | |
437 extern char bFlashAutonotesBook; // weak | |
438 extern char bFlashQuestBook; // weak | |
569 | 439 extern int uTextureID_PlayerBuff_PainReflection; // weak |
440 extern int uTextureID_PlayerBuff_Hammerhands; // weak | |
441 extern int uTextureID_PlayerBuff_Preservation; // weak | |
442 extern int uTextureID_PlayerBuff_Bless; // weak | |
319 | 443 extern int uTextureID_Btn_QuickReference; // weak |
1507 | 444 extern int uTextureID_Compas; // dword_5079B4 |
0 | 445 extern int dword_5079C8; // weak |
446 extern int dword_5079CC; // weak | |
447 extern int dword_5079D0; // weak | |
1507 | 448 extern int uTextureID_Minimap_Loop; // dword_5079D8 |
319 | 449 extern struct GUIButton *pBtn_ZoomOut; // idb |
450 extern struct GUIButton *pBtn_ZoomIn; // idb | |
0 | 451 extern unsigned int uGameUIFontShadow; |
452 extern unsigned int uGameUIFontMain; | |
453 extern int dword_507B00_spell_info_to_draw_in_popup; // weak | |
1838 | 454 extern std::array<const char *, 12> aMonthNames; |
455 extern std::array<const char *, 7> aDayNames; | |
456 extern std::array<const char *, 9> aSpellSchoolNames; | |
457 extern std::array<const char *, 7> aAttributeNames; | |
0 | 458 extern unsigned int uActiveCharacter; |
459 extern int dword_507BF0_is_there_popup_onscreen; // weak | |
1458 | 460 extern int awards_scroll_bar_created; // weak |
1091 | 461 extern int dword_507CC0_activ_ch; // weak |
569 | 462 extern __int64 GameUI_RightPanel_BookFlashTimer; // weak |
0 | 463 extern int _507CD4_RestUI_hourglass_anim_controller; // weak |
1408 | 464 extern bool OpenedTelekinesis; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
465 extern std::array<int, 50> dword_50B570; // weak |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
466 extern std::array<int, 50> dword_50B638; // weak |
1344 | 467 extern struct stru367 PortalFace; |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
468 extern std::array<int, 100> dword_50BC10; // weak |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
469 extern std::array<int, 100> dword_50BDA0; // weak |
2182 | 470 extern std::array<int, 100> _50BF30_actors_in_viewport_ids; // weak |
710 | 471 extern char town_portal_caster_id; // weak |
0 | 472 extern int some_active_character; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
473 extern std::array<unsigned int, 5> pIconIDs_Turn; |
0 | 474 extern unsigned int uIconID_TurnStop; |
475 extern unsigned int uIconID_TurnHour; | |
476 extern int uIconID_CharacterFrame; // idb | |
477 extern unsigned int uIconID_TurnStart; | |
478 extern int dword_50C994; // weak | |
479 extern int dword_50C998_turnbased_icon_1A; // weak | |
480 extern int uSpriteID_Spell11; // idb | |
1682 | 481 extern bool _50C9A0_IsEnchantingInProgress; // weak |
984 | 482 extern int _50C9A8_item_enchantment_timer; // weak |
1682 | 483 extern int _50C9D0_AfterEnchClickEventId; // weak |
484 extern int _50C9D4_AfterEnchClickEventSecondParam; // weak | |
485 extern int _50C9D8_AfterEnchClickEventTimeout; // weak | |
0 | 486 extern int dword_50C9DC; // weak |
487 extern struct NPCData *ptr_50C9E0; | |
1012 | 488 //extern int dword_50C9E8; // idb |
489 //extern int dword_50C9EC[]; // 50C9EC | |
437 | 490 extern int dword_50CDC8; |
0 | 491 extern Vec3_int_ layingitem_vel_50FDFC; |
1477
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
1470
diff
changeset
|
492 extern char pStartingMapName[32]; // idb |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
493 extern std::array<unsigned __int8, 5> IsPlayerWearingWatersuit; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
494 extern std::array<char, 54> party_has_equipment; |
2289
60293358b4b3
byte_5111F6 to byte_5111F6_OwnedArtifacts, changed magic numbers to enums in GetItemTextureFilename
Grumpy7
parents:
2285
diff
changeset
|
495 extern std::array<char, 17> byte_5111F6_OwnedArtifacts; |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
496 extern std::array<unsigned int, 16> papredoll_dbrds; |
1091 | 497 |
0 | 498 extern int bRingsShownInCharScreen; // weak |
499 | |
500 extern unsigned int uNumBlueFacesInBLVMinimap; | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
501 extern std::array<unsigned __int16, 50> pBlueFacesInBLVMinimapIDs; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
502 extern std::array<int, 14> pTextureIDs_PartyBuffIcons; |
569 | 503 extern unsigned int uIconIdx_FlySpell; |
504 extern unsigned int uIconIdx_WaterWalk; | |
0 | 505 extern int dword_576E28; // weak |
1051 | 506 extern int _576E2C_current_minimap_zoom; // weak |
0 | 507 extern __int64 _5773B8_event_timer; // weak |
629 | 508 |
0 | 509 extern int dword_591084; // weak |
510 extern struct Actor *pDialogue_SpeakingActor; | |
511 extern unsigned int uDialogueType; | |
602 | 512 extern signed int sDialogue_SpeakingActorNPC_ID; |
0 | 513 extern struct LevelDecoration *_591094_decoration; |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
514 extern std::array<char, 200> sHouseName; // idb |
0 | 515 extern int uCurrentHouse_Animation; // weak |
516 extern char *dword_591164_teleport_map_name; // idb | |
517 extern int dword_591168_teleport_speedz; // weak | |
518 extern int dword_59116C_teleport_directionx; // weak | |
519 extern int dword_591170_teleport_directiony; // weak | |
520 extern int dword_591174_teleportz; // weak | |
521 extern int dword_591178_teleporty; // weak | |
522 extern int dword_59117C_teleportx; // weak | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
523 extern std::array<std::array<char, 100>, 6> byte_591180; // idb |
1211 | 524 extern std::array<struct NPCData *, 7> HouseNPCData; //0this array size temporarily increased to 60 from 6 to work aroud house overflow |
1589 | 525 extern GUIButton* HouseNPCPortraitsButtonsList[6]; |
0 | 526 extern struct Texture *pTexture_591428; |
527 extern struct Texture *pTexture_outside; // idb | |
528 extern struct Texture *pTexture_Dialogue_Background; | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
529 extern std::array<char, 2000> byte_5B0938; |
469 | 530 extern int EvtTargetObj; // weak |
434 | 531 extern int _unused_5B5924_is_travel_ui_drawn; // 005B5924 |
0 | 532 extern int _5B65A8_npcdata_uflags_or_other; // weak |
533 extern int _5B65AC_npcdata_fame_or_other; // weak | |
534 extern int _5B65B0_npcdata_rep_or_other; // weak | |
535 extern int _5B65B4_npcdata_loword_house_or_other; // weak | |
536 extern int _5B65B8_npcdata_hiword_house_or_other; // weak | |
537 extern int dword_5B65BC; // weak | |
538 extern int dword_5B65C0; // weak | |
1825
23deb6b09c8c
cancelEventProcessing to dword_5B65C4_cancelEventProcessing
Grumpy7
parents:
1823
diff
changeset
|
539 extern int dword_5B65C4_cancelEventProcessing; // weak |
2386 | 540 extern int MapsLongTimers_count; // dword_5B65C8 |
1793
4dee76d79c78
dword_5B65CC to npcIdToDismissAfterDialogue, Party::field_709 to Party::hirelingScrollPosition
Grumpy7
parents:
1783
diff
changeset
|
541 extern int npcIdToDismissAfterDialogue; // weak |
0 | 542 extern int dword_5B65D0_dialogue_actor_npc_id; // weak |
543 extern int dword_5C3418; // weak | |
544 extern int dword_5C341C; // weak | |
1470 | 545 //extern std::array<char, 777> byte_5C3427; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
546 extern std::array<char, 200> GameUI_Footer_TimedString; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
547 extern std::array<char, 200> pFooterString; |
783 | 548 extern unsigned int GameUI_Footer_TimeLeft; |
549 extern int bForceDrawFooter; // weak | |
2154 | 550 extern int _5C35C0_force_party_death; // weak |
0 | 551 extern int bDialogueUI_InitializeActor_NPC_ID; // weak |
552 extern char *p2DEventsTXT_Raw; | |
629 | 553 |
0 | 554 extern int dword_5C35D4; // weak |
1838 | 555 extern std::array<const char *, 2> aAMPMNames; |
0 | 556 extern char byte_5C45AF[]; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
557 extern std::array<char, 10000> pTmpBuf3; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
558 extern std::array<char, 4096> pFinalMessage; // idb |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
559 extern std::array<char, 2000> pTmpBuf; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
560 extern std::array<char, 2000> pTmpBuf2; |
1453 | 561 extern std::array<char, 100> Journal_limitation_factor; // weak |
0 | 562 extern int ui_current_text_color; // weak |
563 extern __int64 qword_5C6DF0; // weak | |
564 extern int dword_5C6DF8; // weak | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
565 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
|
566 extern std::array<char *, 36> pClassDescriptions; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
567 extern std::array<char *, 7> pAttributeDescriptions; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
568 extern std::array<char *, 38> pGrandSkillDesc; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
569 extern std::array<char *, 38> pMasterSkillDesc; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
570 extern std::array<char *, 38> pExpertSkillDesc; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
571 extern std::array<char *, 38> pNormalSkillDesc; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
572 extern std::array<char *, 38> pSkillDesc; |
0 | 573 extern char *pHealthPointsAttributeDescription; |
574 extern char *pSpellPointsAttributeDescription; | |
575 extern char *pArmourClassAttributeDescription; | |
576 extern char *pPlayerConditionAttributeDescription; // idb | |
577 extern char *pFastSpellAttributeDescription; | |
578 extern char *pPlayerAgeAttributeDescription; | |
579 extern char *pPlayerLevelAttributeDescription; | |
580 extern char *pPlayerExperienceAttributeDescription; | |
581 extern char *pAttackBonusAttributeDescription; | |
582 extern char *pAttackDamageAttributeDescription; | |
583 extern char *pMissleBonusAttributeDescription; | |
584 extern char *pMissleDamageAttributeDescription; | |
585 extern char *pFireResistanceAttributeDescription; | |
586 extern char *pAirResistanceAttributeDescription; | |
587 extern char *pWaterResistanceAttributeDescription; | |
588 extern char *pEarthResistanceAttributeDescription; | |
589 extern char *pMindResistanceAttributeDescription; | |
590 extern char *pBodyResistanceAttributeDescription; | |
591 extern char *pSkillPointsAttributeDescription; | |
592 extern char *pClassTXT_Raw; | |
593 extern char *pStatsTXT_Raw; | |
594 extern char *pSkillDescTXT_Raw; | |
595 extern struct FactionTable *pFactionTable; | |
1263 | 596 //extern std::array<char, 777> byte_5C8D1A; // weak |
189 | 597 |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
598 extern std::array<char, 777> byte_5E4C15; // weak |
1838 | 599 extern std::array<const char *, 14> pSomeItemsNames; |
189 | 600 |
0 | 601 extern char *pMonstersTXT_Raw; |
602 extern char *pMonsterPlacementTXT_Raw; | |
603 extern char *pSpellsTXT_Raw; | |
604 extern char *pMapStatsTXT_Raw; | |
605 extern char *pHostileTXT_Raw; | |
606 extern char *pPotionsTXT_Raw; | |
607 extern char *pPotionNotesTXT_Raw; | |
233 | 608 |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
609 extern std::array<int, 777> _6807B8_level_decorations_ids; // idb |
0 | 610 extern int _6807E0_num_decorations_with_sounds_6807B8; // weak |
1459 | 611 extern std::array<int, 3000> event_triggers; // 6807E8 |
1503 | 612 extern size_t num_event_triggers; // 6836C8 |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
613 extern std::array<int, 64> dword_69B010; |
0 | 614 extern float flt_69B138_dist; // weak |
615 extern char byte_69BD41_unused; // weak | |
616 extern unsigned int uTextureID_x_u; | |
617 extern unsigned int uTextureID_LS_saveU; | |
618 extern unsigned int uTextureID_LS_loadU; | |
619 extern unsigned int uTextureID_AR_DN_DN; | |
620 extern unsigned int uTextureID_AR_UP_DN; | |
621 extern unsigned int uTextureID_LS_; | |
622 extern unsigned int uTextureID_x_d; | |
623 extern unsigned int uTextureID_save_up; | |
624 extern unsigned int uTextureID_load_up; | |
625 extern unsigned int uTextureID_loadsave; | |
2 | 626 extern int pSaveListPosition; // weak |
0 | 627 extern unsigned int uLoadGameUI_SelectedSlot; |
628 extern HWND hInsertCDWindow; // idb | |
629 extern int uCPUSpeed; // weak | |
630 extern char cMM7GameCDDriveLetter; // idb | |
2006 | 631 extern enum MENU_STATE sCurrentMenuID; |
0 | 632 extern unsigned int uGameState; |
633 extern int uDefaultTravelTime_ByFoot; // weak | |
634 extern int day_attrib; // weak | |
635 extern int day_fogrange_1; // weak | |
636 extern int day_fogrange_2; // weak | |
637 extern struct TileTable *pTileTable; // idb | |
638 extern int outdoor_grid_band_1; // idb | |
639 extern int outdoor_grid_band_2; // idb | |
640 extern int outdoor_grid_band_3; // idb | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
641 extern std::array<char, 777> pDefaultSkyTexture; // idb |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
642 extern std::array<char, 16> byte_6BE124_cfg_textures_DefaultGroundTexture; // idb |
0 | 643 extern int _6BE134_odm_main_tile_group; // weak |
644 extern int dword_6BE138; // weak | |
645 extern int dword_6BE13C_uCurrentlyLoadedLocationID; // weak | |
646 extern float fWalkSpeedMultiplier; // weak | |
647 extern float fBackwardWalkSpeedMultiplier; // weak | |
648 extern float fTurnSpeedMultiplier; // weak | |
649 extern float flt_6BE150_look_up_down_dangle; // weak | |
650 //extern char pMM7WindowClassName[]; // idb | |
651 //extern HINSTANCE hInstance; // idb | |
652 //extern char *pCmdLine; | |
1802 | 653 //extern HWND hWnd; // idb |
1477
7ef4b64f6329
* LODFile::LoadBitmaps & LODFile::LoadIconsOrEvents are merged into LODFile::Load
Nomad
parents:
1470
diff
changeset
|
654 extern char pCurrentMapName[32]; // idb |
0 | 655 extern unsigned int uLevelMapStatsID; |
2061 | 656 |
2069 | 657 extern bool FORCE_16_BITS; // related to GAME_SETTINGS_INVALID_RESOLUTION |
2061 | 658 #define GAME_SETTINGS_0001 0x0001 |
659 #define GAME_SETTINGS_INVALID_RESOLUTION 0x0002 | |
660 #define GAME_SETTINGS_NO_INTRO 0x0004 | |
661 #define GAME_SETTINGS_NO_LOGO 0x0008 | |
662 #define GAME_SETTINGS_NO_SOUND 0x0010 | |
663 #define GAME_SETTINGS_NO_WALK_SOUND 0x0020 | |
664 #define GAME_SETTINGS_NO_HOUSE_ANIM 0x0040 | |
665 #define GAME_SETTINGS_0080_SKIP_USER_INPUT_THIS_FRAME 0x0080 | |
666 #define GAME_SETTINGS_APP_INACTIVE 0x0100 | |
667 #define GAME_SETTINGS_0200_EVENT_TIMER 0x0200 | |
668 #define GAME_SETTINGS_0400_MISC_TIMER 0x0400 | |
669 #define GAME_SETTINGS_0800 0x0800 | |
670 #define GAME_SETTINGS_1000 0x1000 | |
671 #define GAME_SETTINGS_2000 0x2000 | |
672 #define GAME_SETTINGS_4000 0x4000 | |
673 extern int dword_6BE364_game_settings_1; // GAME_SETTINGS_* | |
674 | |
675 #define DEBUG_SETTINGS_RUN_IN_WIDOW 0x0001 | |
676 #define DEBUG_SETTINGS_0002_SHOW_FR 0x0002 | |
677 #define DEBUG_SETTINGS_NO_ACTORS 0x0004 | |
678 #define DEBUG_SETTINGS_NO_DECORATIONS 0x0008 | |
679 #define DEBUG_SETTINGS_NO_DAMAGE 0x0010 | |
680 extern int dword_6BE368_debug_settings_2; // DEBUG_SETTINGS_* | |
681 | |
0 | 682 extern unsigned __int8 bCanLoadFromCD; |
683 extern int bShowDamage; // idb | |
684 extern unsigned int bAlwaysRun; | |
685 extern unsigned int bFlipOnExit; | |
686 extern unsigned int uTurnSpeed; | |
687 extern float flt_6BE3A0; // weak | |
688 extern float flt_6BE3A4_debug_recmod1; | |
689 extern float flt_6BE3A8_debug_recmod2; | |
690 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
|
691 extern std::array<char, 20> byte_6BE3B0; // idb |
0 | 692 extern char bUnderwater; // weak |
693 extern char bNoNPCHiring; // weak | |
694 extern unsigned int bNoVideo; | |
695 extern bool bNoIntro; | |
696 extern bool bNoLogo; | |
697 extern bool bNoCD; | |
698 extern bool bNoSound; | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
699 extern std::array<int, 100> dword_720020_zvalues; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
700 extern std::array<int, 299> dword_7201B0_zvalues; |
0 | 701 extern int uTextureID_720980; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
702 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
|
703 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
|
704 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
|
705 extern std::array<__int16, 102> word_720C10_intercepts_xs; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
706 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
|
707 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
|
708 extern std::array<int, 20> dword_720E80; |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
709 extern std::array<int, 20> dword_720ED0; |
2043
2ccf638342d6
int max_flight_height and GetCeilingHeight function
Ritor1
parents:
2007
diff
changeset
|
710 extern std::array<int, 20> ceiling_height_level; |
2075 | 711 extern std::array<__int16, 104> odm_floor_face_vert_coord_Y; // word_720F70 |
712 extern std::array<__int16, 104> odm_floor_face_vert_coord_X; // word_721040 | |
2140
4c0c475917dd
drawing items in the dragon's cave and GetFloorLevel for BModels
Ritor1
parents:
2132
diff
changeset
|
713 extern std::array<int, 20> current_Face_id; // dword_721110 |
4c0c475917dd
drawing items in the dragon's cave and GetFloorLevel for BModels
Ritor1
parents:
2132
diff
changeset
|
714 extern std::array<int, 20> current_BModel_id; // dword_721160 |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
715 extern std::array<int, 20> odm_floor_level; // idb dword_7211B0 |
0 | 716 extern int blv_prev_party_x; // weak |
717 extern int blv_prev_party_z; // weak | |
718 extern int blv_prev_party_y; // weak | |
719 extern char *dword_722F10; // idb | |
1310 | 720 extern std::array<const char *, 513> pQuestTable; |
0 | 721 extern char *dword_723718_autonote_related; // idb |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
722 extern std::array<const char *, 82> pScrolls; |
0 | 723 extern int dword_7241C8; // weak |
629 | 724 |
1838 | 725 extern std::array<const char *, 59> aNPCProfessionNames; |
0 | 726 extern char *pAwardsTXT_Raw; |
727 extern char *pScrollsTXT_Raw; | |
728 extern char *pMerchantsTXT_Raw; | |
1838 | 729 extern std::array<const char *, 7> pMerchantsBuyPhrases; |
730 extern std::array<const char *, 7> pMerchantsSellPhrases; | |
731 extern std::array<const char *, 7> pMerchantsRepairPhrases; | |
732 extern std::array<const char *, 7> pMerchantsIdentifyPhrases; | |
0 | 733 extern char *pTransitionsTXT_Raw; |
734 extern char *pAutonoteTXT_Raw; | |
735 extern char *pQuestsTXT_Raw; | |
67 | 736 extern unsigned int uNumTerrainNormals; |
0 | 737 extern struct Vec3_float_ *pTerrainNormals; |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
738 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
|
739 extern std::array<unsigned int, 128 * 128 * 2> pTerrainSomeOtherData; |
0 | 740 extern int dword_A74C88; // weak |
741 extern unsigned int uPlayerCreationUI_SkySliderPos; | |
742 extern int uPlayerCreationUI_ArrowAnim; | |
743 extern unsigned int uPlayerCreationUI_SelectedCharacter; | |
744 extern int dword_A74CDC; // weak | |
745 extern struct Texture *pTexture_PlayerFaceMask; | |
746 extern struct Texture *pTexture_PlayerFaceEradicated; | |
747 extern struct Texture *pTexture_PlayerFaceDead; | |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
748 extern std::array< std::array<struct Texture *, 56>, 4> pTextures_PlayerFaces; |
2182 | 749 extern __int64 _A750D8_player_speech_timer; // qword_A750D8 |
1406 | 750 extern enum PlayerSpeech PlayerSpeechID; |
1407 | 751 extern int uSpeakingCharacter; // weak |
1838 | 752 extern std::array<const char *, 36> pClassNames; |
753 extern std::array<const char *, 19> aCharacterConditionNames; | |
754 extern std::array<const char *, 38> pSkillNames; | |
0 | 755 extern char byte_AE5B91; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
756 extern std::array<int, 32> dword_F1B430; // weak |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
757 extern std::array<int, 4> player_levels; |
1739 | 758 extern std::array<__int16, 6> weapons_Ypos; // word_F8B158 |
496 | 759 extern struct Texture *ShopTexture; // idb |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
760 extern std::array<struct Texture *, 12> ItemsInShopTexture; |
1529 | 761 extern __int16 bountyHunting_monster_id_for_hunting; // weak |
762 extern const char *bountyHunting_text; // idb | |
484 | 763 extern int contract_approved; // weak |
492 | 764 extern int dword_F8B1AC_award_bit_number; // idb |
2239
699bd6ee5ad0
dword_F8B1B0 to dword_F8B1B0_MasteryBeingTaught, some final touches to _4B254D_SkillMasteryTeacher
Grumpy7
parents:
2229
diff
changeset
|
765 extern int dword_F8B1B0_MasteryBeingTaught; // weak |
267 | 766 extern int gold_transaction_amount; // F8B1B4 |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
767 extern std::array<char *, 4> pShopOptions; |
0 | 768 extern int dword_F8B1D8; // weak |
769 extern int dword_F8B1E0; // weak | |
770 extern int dword_F8B1E4; // weak | |
827 | 771 extern const char *current_npc_text; // 0xF8B1E8 |
248 | 772 extern char dialogue_show_profession_details; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
773 extern std::array<char, 777> byte_F8B1EF; // weak |
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
774 extern std::array<char, 4> byte_F8B1F0; |
701 | 775 |
0 | 776 extern int bGameoverLoop; // weak |
1205
8c02e6f74b29
arrays to std::arrays phase 2 - mm7_data.h converted
Grumpy7
parents:
1203
diff
changeset
|
777 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
|
778 extern std::array<__int16, 104> intersect_face_vertex_coords_list_b; // word_F8BD18 |
2277 | 779 extern bool wizard_eye; |
780 extern bool change_seasons; | |
781 extern bool all_magic; | |
782 extern bool debug_information; | |
783 extern bool show_picked_face; | |
784 extern bool draw_portals_loops; | |
785 extern bool new_speed; | |
786 extern bool bSnow; | |
2320 | 787 extern bool draw_terrain_dist_mist; |