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