annotate mm7_data.h @ 2403:069018761f96

Слияние
author Ritor1
date Mon, 14 Jul 2014 10:04:14 +0600
parents 41c36ecc9f32
children d922225a6081
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2 #include <string>
1016
c45d51b3f4f4 Included header files cleanup
Grumpy7
parents: 995
diff changeset
3 #include "VectorTypes.h"
0
Ritor1
parents:
diff changeset
4 #include "OSAPI.h"
1202
0dbf6c4dd029 arrays to std::arrays phase 1
Grumpy7
parents: 1196
diff changeset
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
466c5e15f524 Excess wrapper (IndoorLocation_drawstru) removed.
Nomad
parents: 1640
diff changeset
8
2154
9bd7522cdbbb Render decoupling.
Nomad
parents: 2152
diff changeset
9 //typedef char _UNKNOWN;
0
Ritor1
parents:
diff changeset
10 typedef unsigned int uint;
Ritor1
parents:
diff changeset
11
Ritor1
parents:
diff changeset
12
Ritor1
parents:
diff changeset
13
Ritor1
parents:
diff changeset
14
Ritor1
parents:
diff changeset
15
Ritor1
parents:
diff changeset
16
Ritor1
parents:
diff changeset
17
Ritor1
parents:
diff changeset
18
Ritor1
parents:
diff changeset
19
Ritor1
parents:
diff changeset
20
Ritor1
parents:
diff changeset
21
Ritor1
parents:
diff changeset
22
Ritor1
parents:
diff changeset
23
Ritor1
parents:
diff changeset
24
Ritor1
parents:
diff changeset
25
Ritor1
parents:
diff changeset
26
Ritor1
parents:
diff changeset
27 #if defined(__GNUC__)
Ritor1
parents:
diff changeset
28 typedef long long ll;
Ritor1
parents:
diff changeset
29 typedef unsigned long long ull;
Ritor1
parents:
diff changeset
30 #define __int64 long long
Ritor1
parents:
diff changeset
31 #define __int32 int
Ritor1
parents:
diff changeset
32 #define __int16 short
Ritor1
parents:
diff changeset
33 #define __int8 char
Ritor1
parents:
diff changeset
34 #define MAKELL(num) num ## LL
Ritor1
parents:
diff changeset
35 #define FMT_64 "ll"
Ritor1
parents:
diff changeset
36 #elif defined(_MSC_VER)
Ritor1
parents:
diff changeset
37 typedef __int64 ll;
Ritor1
parents:
diff changeset
38 typedef unsigned __int64 ull;
Ritor1
parents:
diff changeset
39 #define MAKELL(num) num ## i64
Ritor1
parents:
diff changeset
40 #define FMT_64 "I64"
Ritor1
parents:
diff changeset
41 #elif defined (__BORLANDC__)
Ritor1
parents:
diff changeset
42 typedef __int64 ll;
Ritor1
parents:
diff changeset
43 typedef unsigned __int64 ull;
Ritor1
parents:
diff changeset
44 #define MAKELL(num) num ## i64
Ritor1
parents:
diff changeset
45 #define FMT_64 "L"
Ritor1
parents:
diff changeset
46 #else
Ritor1
parents:
diff changeset
47 #error "unknown compiler"
Ritor1
parents:
diff changeset
48 #endif
Ritor1
parents:
diff changeset
49 typedef unsigned int uint;
Ritor1
parents:
diff changeset
50 typedef unsigned char uchar;
Ritor1
parents:
diff changeset
51 typedef unsigned short ushort;
Ritor1
parents:
diff changeset
52 typedef unsigned long ulong;
Ritor1
parents:
diff changeset
53
Ritor1
parents:
diff changeset
54 typedef char int8;
Ritor1
parents:
diff changeset
55 typedef signed char sint8;
Ritor1
parents:
diff changeset
56 typedef unsigned char uint8;
Ritor1
parents:
diff changeset
57 typedef short int16;
Ritor1
parents:
diff changeset
58 typedef signed short sint16;
Ritor1
parents:
diff changeset
59 typedef unsigned short uint16;
Ritor1
parents:
diff changeset
60 typedef int int32;
Ritor1
parents:
diff changeset
61 typedef signed int sint32;
Ritor1
parents:
diff changeset
62 typedef unsigned int uint32;
Ritor1
parents:
diff changeset
63 typedef ll int64;
Ritor1
parents:
diff changeset
64 typedef ll sint64;
Ritor1
parents:
diff changeset
65 typedef ull uint64;
Ritor1
parents:
diff changeset
66
Ritor1
parents:
diff changeset
67 // Partially defined types:
Ritor1
parents:
diff changeset
68 #define _BYTE uint8
Ritor1
parents:
diff changeset
69 #define _WORD uint16
Ritor1
parents:
diff changeset
70 #define _DWORD uint32
Ritor1
parents:
diff changeset
71 #define _QWORD uint64
Ritor1
parents:
diff changeset
72 #if !defined(_MSC_VER)
Ritor1
parents:
diff changeset
73 #define _LONGLONG __int128
Ritor1
parents:
diff changeset
74 #endif
Ritor1
parents:
diff changeset
75
Ritor1
parents:
diff changeset
76 #ifndef _WINDOWS_
Ritor1
parents:
diff changeset
77 typedef int8 BYTE;
Ritor1
parents:
diff changeset
78 typedef int16 WORD;
Ritor1
parents:
diff changeset
79 typedef int32 DWORD;
Ritor1
parents:
diff changeset
80 typedef int32 LONG;
Ritor1
parents:
diff changeset
81 #endif
Ritor1
parents:
diff changeset
82 typedef int64 QWORD;
Ritor1
parents:
diff changeset
83 #ifndef __cplusplus
Ritor1
parents:
diff changeset
84 typedef int bool; // we want to use bool in our C programs
Ritor1
parents:
diff changeset
85 #endif
Ritor1
parents:
diff changeset
86
Ritor1
parents:
diff changeset
87 // Some convenience macros to make partial accesses nicer
Ritor1
parents:
diff changeset
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
Ritor1
parents:
diff changeset
102 #define LOBYTE(x) (*((_BYTE*)&(x))) // low byte
Ritor1
parents:
diff changeset
103 #define LOWORD(x) (*((_WORD*)&(x))) // low word
Ritor1
parents:
diff changeset
104 #define LODWORD(x) (*((_DWORD*)&(x))) // low dword
Ritor1
parents:
diff changeset
105 #define HIBYTE(x) (*((_BYTE*)&(x)+1))
Ritor1
parents:
diff changeset
106 #define HIWORD(x) (*((_WORD*)&(x)+1))
Ritor1
parents:
diff changeset
107 #define HIDWORD(x) (*((_DWORD*)&(x)+1))
Ritor1
parents:
diff changeset
108 #define BYTEn(x, n) (*((_BYTE*)&(x)+n))
Ritor1
parents:
diff changeset
109 #define WORDn(x, n) (*((_WORD*)&(x)+n))
Ritor1
parents:
diff changeset
110 #define BYTE1(x) BYTEn(x, 1) // byte 1 (counting from 0)
Ritor1
parents:
diff changeset
111 #define BYTE2(x) BYTEn(x, 2)
Ritor1
parents:
diff changeset
112 #define BYTE3(x) BYTEn(x, 3)
Ritor1
parents:
diff changeset
113 #define BYTE4(x) BYTEn(x, 4)
Ritor1
parents:
diff changeset
114 #define BYTE5(x) BYTEn(x, 5)
Ritor1
parents:
diff changeset
115 #define BYTE6(x) BYTEn(x, 6)
Ritor1
parents:
diff changeset
116 #define BYTE7(x) BYTEn(x, 7)
Ritor1
parents:
diff changeset
117 #define BYTE8(x) BYTEn(x, 8)
Ritor1
parents:
diff changeset
118 #define BYTE9(x) BYTEn(x, 9)
Ritor1
parents:
diff changeset
119 #define BYTE10(x) BYTEn(x, 10)
Ritor1
parents:
diff changeset
120 #define BYTE11(x) BYTEn(x, 11)
Ritor1
parents:
diff changeset
121 #define BYTE12(x) BYTEn(x, 12)
Ritor1
parents:
diff changeset
122 #define BYTE13(x) BYTEn(x, 13)
Ritor1
parents:
diff changeset
123 #define BYTE14(x) BYTEn(x, 14)
Ritor1
parents:
diff changeset
124 #define BYTE15(x) BYTEn(x, 15)
Ritor1
parents:
diff changeset
125 #define WORD1(x) WORDn(x, 1)
Ritor1
parents:
diff changeset
126 #define WORD2(x) WORDn(x, 2) // third word of the object, unsigned
Ritor1
parents:
diff changeset
127 #define WORD3(x) WORDn(x, 3)
Ritor1
parents:
diff changeset
128 #define WORD4(x) WORDn(x, 4)
Ritor1
parents:
diff changeset
129 #define WORD5(x) WORDn(x, 5)
Ritor1
parents:
diff changeset
130 #define WORD6(x) WORDn(x, 6)
Ritor1
parents:
diff changeset
131 #define WORD7(x) WORDn(x, 7)
Ritor1
parents:
diff changeset
132
Ritor1
parents:
diff changeset
133 // now signed macros (the same but with sign extension)
Ritor1
parents:
diff changeset
134 #define SLOBYTE(x) (*((int8*)&(x)))
Ritor1
parents:
diff changeset
135 #define SLOWORD(x) (*((int16*)&(x)))
Ritor1
parents:
diff changeset
136 #define SLODWORD(x) (*((int32*)&(x)))
Ritor1
parents:
diff changeset
137 #define SHIBYTE(x) (*((int8*)&(x)+1))
Ritor1
parents:
diff changeset
138 #define SHIWORD(x) (*((int16*)&(x)+1))
Ritor1
parents:
diff changeset
139 #define SHIDWORD(x) (*((int32*)&(x)+1))
Ritor1
parents:
diff changeset
140 #define SBYTEn(x, n) (*((int8*)&(x)+n))
Ritor1
parents:
diff changeset
141 #define SWORDn(x, n) (*((int16*)&(x)+n))
Ritor1
parents:
diff changeset
142 #define SBYTE1(x) SBYTEn(x, 1)
Ritor1
parents:
diff changeset
143 #define SBYTE2(x) SBYTEn(x, 2)
Ritor1
parents:
diff changeset
144 #define SBYTE3(x) SBYTEn(x, 3)
Ritor1
parents:
diff changeset
145 #define SBYTE4(x) SBYTEn(x, 4)
Ritor1
parents:
diff changeset
146 #define SBYTE5(x) SBYTEn(x, 5)
Ritor1
parents:
diff changeset
147 #define SBYTE6(x) SBYTEn(x, 6)
Ritor1
parents:
diff changeset
148 #define SBYTE7(x) SBYTEn(x, 7)
Ritor1
parents:
diff changeset
149 #define SBYTE8(x) SBYTEn(x, 8)
Ritor1
parents:
diff changeset
150 #define SBYTE9(x) SBYTEn(x, 9)
Ritor1
parents:
diff changeset
151 #define SBYTE10(x) SBYTEn(x, 10)
Ritor1
parents:
diff changeset
152 #define SBYTE11(x) SBYTEn(x, 11)
Ritor1
parents:
diff changeset
153 #define SBYTE12(x) SBYTEn(x, 12)
Ritor1
parents:
diff changeset
154 #define SBYTE13(x) SBYTEn(x, 13)
Ritor1
parents:
diff changeset
155 #define SBYTE14(x) SBYTEn(x, 14)
Ritor1
parents:
diff changeset
156 #define SBYTE15(x) SBYTEn(x, 15)
Ritor1
parents:
diff changeset
157 #define SWORD1(x) SWORDn(x, 1)
Ritor1
parents:
diff changeset
158 #define SWORD2(x) SWORDn(x, 2)
Ritor1
parents:
diff changeset
159 #define SWORD3(x) SWORDn(x, 3)
Ritor1
parents:
diff changeset
160 #define SWORD4(x) SWORDn(x, 4)
Ritor1
parents:
diff changeset
161 #define SWORD5(x) SWORDn(x, 5)
Ritor1
parents:
diff changeset
162 #define SWORD6(x) SWORDn(x, 6)
Ritor1
parents:
diff changeset
163 #define SWORD7(x) SWORDn(x, 7)
Ritor1
parents:
diff changeset
164
Ritor1
parents:
diff changeset
165
Ritor1
parents:
diff changeset
166
Ritor1
parents:
diff changeset
167 // Generate a reference to pair of operands
Ritor1
parents:
diff changeset
168 template<class T> int16 __PAIR__( int8 high, T low) { return ((( int16)high) << sizeof(high)*8) | uint8(low); }
Ritor1
parents:
diff changeset
169 template<class T> int32 __PAIR__( int16 high, T low) { return ((( int32)high) << sizeof(high)*8) | uint16(low); }
Ritor1
parents:
diff changeset
170 template<class T> int64 __PAIR__( int32 high, T low) { return ((( int64)high) << sizeof(high)*8) | uint32(low); }
Ritor1
parents:
diff changeset
171 template<class T> uint16 __PAIR__(uint8 high, T low) { return (((uint16)high) << sizeof(high)*8) | uint8(low); }
Ritor1
parents:
diff changeset
172 template<class T> uint32 __PAIR__(uint16 high, T low) { return (((uint32)high) << sizeof(high)*8) | uint16(low); }
Ritor1
parents:
diff changeset
173 template<class T> uint64 __PAIR__(uint32 high, T low) { return (((uint64)high) << sizeof(high)*8) | uint32(low); }
Ritor1
parents:
diff changeset
174
Ritor1
parents:
diff changeset
175 // rotate left
Ritor1
parents:
diff changeset
176 template<class T> T __ROL__(T value, uint count)
Ritor1
parents:
diff changeset
177 {
Ritor1
parents:
diff changeset
178 const uint nbits = sizeof(T) * 8;
Ritor1
parents:
diff changeset
179 count %= nbits;
Ritor1
parents:
diff changeset
180
Ritor1
parents:
diff changeset
181 T high = value >> (nbits - count);
Ritor1
parents:
diff changeset
182 value <<= count;
Ritor1
parents:
diff changeset
183 value |= high;
Ritor1
parents:
diff changeset
184 return value;
Ritor1
parents:
diff changeset
185 }
Ritor1
parents:
diff changeset
186
Ritor1
parents:
diff changeset
187 // rotate right
Ritor1
parents:
diff changeset
188 template<class T> T __ROR__(T value, uint count)
Ritor1
parents:
diff changeset
189 {
Ritor1
parents:
diff changeset
190 const uint nbits = sizeof(T) * 8;
Ritor1
parents:
diff changeset
191 count %= nbits;
Ritor1
parents:
diff changeset
192
Ritor1
parents:
diff changeset
193 T low = value << (nbits - count);
Ritor1
parents:
diff changeset
194 value >>= count;
Ritor1
parents:
diff changeset
195 value |= low;
Ritor1
parents:
diff changeset
196 return value;
Ritor1
parents:
diff changeset
197 }
Ritor1
parents:
diff changeset
198
Ritor1
parents:
diff changeset
199 // carry flag of left shift
Ritor1
parents:
diff changeset
200 template<class T> int8 __MKCSHL__(T value, uint count)
Ritor1
parents:
diff changeset
201 {
Ritor1
parents:
diff changeset
202 const uint nbits = sizeof(T) * 8;
Ritor1
parents:
diff changeset
203 count %= nbits;
Ritor1
parents:
diff changeset
204
Ritor1
parents:
diff changeset
205 return (value >> (nbits-count)) & 1;
Ritor1
parents:
diff changeset
206 }
Ritor1
parents:
diff changeset
207
Ritor1
parents:
diff changeset
208 // carry flag of right shift
Ritor1
parents:
diff changeset
209 template<class T> int8 __MKCSHR__(T value, uint count)
Ritor1
parents:
diff changeset
210 {
Ritor1
parents:
diff changeset
211 return (value >> (count-1)) & 1;
Ritor1
parents:
diff changeset
212 }
Ritor1
parents:
diff changeset
213
Ritor1
parents:
diff changeset
214 // sign flag
Ritor1
parents:
diff changeset
215 template<class T> int8 __SETS__(T x)
Ritor1
parents:
diff changeset
216 {
Ritor1
parents:
diff changeset
217 if ( sizeof(T) == 1 )
Ritor1
parents:
diff changeset
218 return int8(x) < 0;
Ritor1
parents:
diff changeset
219 if ( sizeof(T) == 2 )
Ritor1
parents:
diff changeset
220 return int16(x) < 0;
Ritor1
parents:
diff changeset
221 if ( sizeof(T) == 4 )
Ritor1
parents:
diff changeset
222 return int32(x) < 0;
Ritor1
parents:
diff changeset
223 return int64(x) < 0;
Ritor1
parents:
diff changeset
224 }
Ritor1
parents:
diff changeset
225
Ritor1
parents:
diff changeset
226 // overflow flag of subtraction (x-y)
Ritor1
parents:
diff changeset
227 template<class T, class U> int8 __OFSUB__(T x, U y)
Ritor1
parents:
diff changeset
228 {
Ritor1
parents:
diff changeset
229 if ( sizeof(T) < sizeof(U) )
Ritor1
parents:
diff changeset
230 {
Ritor1
parents:
diff changeset
231 U x2 = x;
Ritor1
parents:
diff changeset
232 int8 sx = __SETS__(x2);
Ritor1
parents:
diff changeset
233 return (sx ^ __SETS__(y)) & (sx ^ __SETS__(x2-y));
Ritor1
parents:
diff changeset
234 }
Ritor1
parents:
diff changeset
235 else
Ritor1
parents:
diff changeset
236 {
Ritor1
parents:
diff changeset
237 T y2 = y;
Ritor1
parents:
diff changeset
238 int8 sx = __SETS__(x);
Ritor1
parents:
diff changeset
239 return (sx ^ __SETS__(y2)) & (sx ^ __SETS__(x-y2));
Ritor1
parents:
diff changeset
240 }
Ritor1
parents:
diff changeset
241 }
Ritor1
parents:
diff changeset
242
Ritor1
parents:
diff changeset
243 // overflow flag of addition (x+y)
Ritor1
parents:
diff changeset
244 template<class T, class U> int8 __OFADD__(T x, U y)
Ritor1
parents:
diff changeset
245 {
Ritor1
parents:
diff changeset
246 if ( sizeof(T) < sizeof(U) )
Ritor1
parents:
diff changeset
247 {
Ritor1
parents:
diff changeset
248 U x2 = x;
Ritor1
parents:
diff changeset
249 int8 sx = __SETS__(x2);
Ritor1
parents:
diff changeset
250 return ((1 ^ sx) ^ __SETS__(y)) & (sx ^ __SETS__(x2+y));
Ritor1
parents:
diff changeset
251 }
Ritor1
parents:
diff changeset
252 else
Ritor1
parents:
diff changeset
253 {
Ritor1
parents:
diff changeset
254 T y2 = y;
Ritor1
parents:
diff changeset
255 int8 sx = __SETS__(x);
Ritor1
parents:
diff changeset
256 return ((1 ^ sx) ^ __SETS__(y2)) & (sx ^ __SETS__(x+y2));
Ritor1
parents:
diff changeset
257 }
Ritor1
parents:
diff changeset
258 }
Ritor1
parents:
diff changeset
259
Ritor1
parents:
diff changeset
260 // carry flag of subtraction (x-y)
Ritor1
parents:
diff changeset
261 template<class T, class U> int8 __CFSUB__(T x, U y)
Ritor1
parents:
diff changeset
262 {
Ritor1
parents:
diff changeset
263 int size = sizeof(T) > sizeof(U) ? sizeof(T) : sizeof(U);
Ritor1
parents:
diff changeset
264 if ( size == 1 )
Ritor1
parents:
diff changeset
265 return uint8(x) < uint8(y);
Ritor1
parents:
diff changeset
266 if ( size == 2 )
Ritor1
parents:
diff changeset
267 return uint16(x) < uint16(y);
Ritor1
parents:
diff changeset
268 if ( size == 4 )
Ritor1
parents:
diff changeset
269 return uint32(x) < uint32(y);
Ritor1
parents:
diff changeset
270 return uint64(x) < uint64(y);
Ritor1
parents:
diff changeset
271 }
Ritor1
parents:
diff changeset
272
Ritor1
parents:
diff changeset
273 // carry flag of addition (x+y)
Ritor1
parents:
diff changeset
274 template<class T, class U> int8 __CFADD__(T x, U y)
Ritor1
parents:
diff changeset
275 {
Ritor1
parents:
diff changeset
276 int size = sizeof(T) > sizeof(U) ? sizeof(T) : sizeof(U);
Ritor1
parents:
diff changeset
277 if ( size == 1 )
Ritor1
parents:
diff changeset
278 return uint8(x) > uint8(x+y);
Ritor1
parents:
diff changeset
279 if ( size == 2 )
Ritor1
parents:
diff changeset
280 return uint16(x) > uint16(x+y);
Ritor1
parents:
diff changeset
281 if ( size == 4 )
Ritor1
parents:
diff changeset
282 return uint32(x) > uint32(x+y);
Ritor1
parents:
diff changeset
283 return uint64(x) > uint64(x+y);
Ritor1
parents:
diff changeset
284 }
Ritor1
parents:
diff changeset
285
Ritor1
parents:
diff changeset
286
Ritor1
parents:
diff changeset
287 //-------------------------------------------------------------------------
Ritor1
parents:
diff changeset
288 // Data declarations
Ritor1
parents:
diff changeset
289
351
5f36449527c6 stru351 -> summoned/spell-enchanted item
Nomad
parents: 346
diff changeset
290 extern int game_starting_year;
819
9359c114f98c More on screenshot
Nomad
parents: 816
diff changeset
291 extern int game_viewport_width;
9359c114f98c More on screenshot
Nomad
parents: 816
diff changeset
292 extern int game_viewport_height;
9359c114f98c More on screenshot
Nomad
parents: 816
diff changeset
293 extern int game_viewport_x;
9359c114f98c More on screenshot
Nomad
parents: 816
diff changeset
294 extern int game_viewport_y;
9359c114f98c More on screenshot
Nomad
parents: 816
diff changeset
295 extern int game_viewport_z;
9359c114f98c More on screenshot
Nomad
parents: 816
diff changeset
296 extern int game_viewport_w;
351
5f36449527c6 stru351 -> summoned/spell-enchanted item
Nomad
parents: 346
diff changeset
297
0
Ritor1
parents:
diff changeset
298 extern int pWindowList_at_506F50_minus1_indexing[1];
Ritor1
parents:
diff changeset
299 extern int dword_4C9890[10]; // weak
Ritor1
parents:
diff changeset
300 extern int dword_4C9920[16]; // weak
Ritor1
parents:
diff changeset
301 extern char byte_4D864C; // weak
Ritor1
parents:
diff changeset
302 extern float flt_4D86CC; // weak
Ritor1
parents:
diff changeset
303 extern int dword_4D86D8; // weak
1185
24454b5c9268 more on acromage
Gloval
parents: 1183
diff changeset
304
1183
fa30ea497e94 arcomage refactoring started
Gloval
parents: 1181
diff changeset
305
0
Ritor1
parents:
diff changeset
306 extern float flt_4D84E8;
1183
fa30ea497e94 arcomage refactoring started
Gloval
parents: 1181
diff changeset
307
227
bcd55744c2f4 Clicking background in MainMenu fix
Nomad
parents: 203
diff changeset
308 extern int pCurrentScreen; // 004E28F8
0
Ritor1
parents:
diff changeset
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
9c7eb4037567 data moving
Gloval
parents: 1078
diff changeset
313 //extern int pArmorSkills[5];
9c7eb4037567 data moving
Gloval
parents: 1078
diff changeset
314 //extern int pWeaponSkills[9];
9c7eb4037567 data moving
Gloval
parents: 1078
diff changeset
315 //extern int pMiscSkills[12];
9c7eb4037567 data moving
Gloval
parents: 1078
diff changeset
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
2929c4406d2c guiwindow funcs cleanup
Gloval
parents: 1264
diff changeset
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
0e368c04acfb Sleeping in a tavern
Nomad
parents: 648
diff changeset
321 extern unsigned char hourglass_icon_idx; // weak
526
214d9d47cf1f Chest working, but items are not laid correctly
Gloval
parents: 521
diff changeset
322
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 938
diff changeset
323
46
9b4f8fe32a6e 21.01.13 StatsTab
Ritor1
parents: 42
diff changeset
324 extern const char *format_4E2D80;
0
Ritor1
parents:
diff changeset
325 extern char format_4E2D90[8];
900
4dc2252e0b03 CharacterUI_StatsTab_ShowHint fixed
Ritor1
parents: 899
diff changeset
326 extern const char *format_4E2DE8; // idb
46
9b4f8fe32a6e 21.01.13 StatsTab
Ritor1
parents: 42
diff changeset
327 extern const char *format_4E2E00; // idb
9b4f8fe32a6e 21.01.13 StatsTab
Ritor1
parents: 42
diff changeset
328 extern const char *format_4E2E10; // format text of resistance in Stats screen
0
Ritor1
parents:
diff changeset
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
9c7eb4037567 data moving
Gloval
parents: 1078
diff changeset
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
9bd7522cdbbb Render decoupling.
Nomad
parents: 2152
diff changeset
345 extern char _4E94D0_light_type; // weak
0
Ritor1
parents:
diff changeset
346 extern char _4E94D2_light_type; // weak
2154
9bd7522cdbbb Render decoupling.
Nomad
parents: 2152
diff changeset
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
Ritor1
parents:
diff changeset
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
9c7eb4037567 data moving
Gloval
parents: 1078
diff changeset
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
8192b25d356c SoundSetAction to std::array
Grumpy7
parents: 1205
diff changeset
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
e1e4a8a20b5f _46А6АС_GetActorsInViewport
Ritor1
parents: 2154
diff changeset
364 extern std::array<int, 2> Party_Spec_Motion_status_ids; //dword_4EE07C
1996
f7e8c4d4a01b sound id fix
zipi
parents: 1980
diff changeset
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
49de109bbab5 SavePCXScreenshot() continue
Ritor1
parents: 2125
diff changeset
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
Ritor1
parents:
diff changeset
369 extern __int16 word_4F0576[]; // weak
463
f7b91ef98ab2 shopgenerators done, except config tables
Gloval
parents: 458
diff changeset
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
Ritor1
parents:
diff changeset
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
34c433886ed4 * indoor working
zipi
parents: 1276
diff changeset
383 extern std::array<int, 182> dword_4F8580; // weak
0
Ritor1
parents:
diff changeset
384 extern int dword_4FA9B0[]; // weak
Ritor1
parents:
diff changeset
385 extern int dword_4FA9B4[]; // weak
1256
236d39ae8f6e arcomage playable
Gloval
parents: 1245
diff changeset
386
0
Ritor1
parents:
diff changeset
387 extern char byte_4FAA24; // weak
1802
633f81bb3ae7 HWND -> class OSWindow
Nomad
parents: 1758
diff changeset
388 //extern HWND dword_4FAA28; // idb
1185
24454b5c9268 more on acromage
Gloval
parents: 1183
diff changeset
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
Ritor1
parents:
diff changeset
391 extern int areWeLoadingTexture; // weak
1446
8b4f4c723edd Questbook_Draw
Ritor1
parents: 1415
diff changeset
392 extern std::array<char, 777> books_num_items_per_page; // weak
2185
385040580292 CastSpell continue
Ritor1
parents: 2182
diff changeset
393 extern int lloyds_beacon_spell_id; // dword_506338
385040580292 CastSpell continue
Ritor1
parents: 2182
diff changeset
394 extern int lloyds_beacon_sound_id; // dword_50633C
0
Ritor1
parents:
diff changeset
395 extern signed int sRecoveryTime; // idb
Ritor1
parents:
diff changeset
396 extern unsigned int uRequiredMana; // idb
Ritor1
parents:
diff changeset
397 extern int _506348_current_lloyd_playerid; // weak
2185
385040580292 CastSpell continue
Ritor1
parents: 2182
diff changeset
398 extern __int64 lloyds_beacon_spell_level; // qword_506350
0
Ritor1
parents:
diff changeset
399 extern char byte_506360; // weak
Ritor1
parents:
diff changeset
400 extern int dword_506364; // weak
1262
0aeac0b9ca30 included header cleanup
Grumpy7
parents: 1256
diff changeset
401 //extern Texture *dword_50640C[]; // weak
526
214d9d47cf1f Chest working, but items are not laid correctly
Gloval
parents: 521
diff changeset
402 extern unsigned int uExitCancelTextureId;
1446
8b4f4c723edd Questbook_Draw
Ritor1
parents: 1415
diff changeset
403 extern int books_page_number; // number for page in books( )
8b4f4c723edd Questbook_Draw
Ritor1
parents: 1415
diff changeset
404 extern int books_primary_item_per_page; // number primary item in book page( )
990
087a9af8e0ec MessageParam
Ritor1
parents: 987
diff changeset
405 extern int Autonotes_Instructors_page_flag; // dword_50652C
087a9af8e0ec MessageParam
Ritor1
parents: 987
diff changeset
406 extern int Autonotes_Misc_page_flag; //dword_506530
087a9af8e0ec MessageParam
Ritor1
parents: 987
diff changeset
407 extern int Book_PageBtn6_flag; //dword_506534
087a9af8e0ec MessageParam
Ritor1
parents: 987
diff changeset
408 extern int Book_PageBtn5_flag; //dword_506538
087a9af8e0ec MessageParam
Ritor1
parents: 987
diff changeset
409 extern int Book_PageBtn4_flag; //dword_50653C
087a9af8e0ec MessageParam
Ritor1
parents: 987
diff changeset
410 extern int Book_PageBtn3_flag; //dword_506540
992
Nomad
parents: 991 990
diff changeset
411 extern int BtnDown_flag; //BtnDown_flag
Nomad
parents: 991 990
diff changeset
412 extern int BtnUp_flag; //BtnUp_flag
688
c0bfb386b15f some ui cleanup
Gloval
parents: 676
diff changeset
413 extern int quick_spell_at_page; // weak
0
Ritor1
parents:
diff changeset
414 extern char byte_506550; // weak
1838
211dfe2d8db1 changing global char* vars to const char* vars
Grumpy7
parents: 1829
diff changeset
415 extern std::array<const char *, 5> aMoonPhaseNames;
981
a6ef7125f6e4 Autonotes & GameState
Nomad
parents: 972
diff changeset
416 extern int _506568_autonote_type; // 506568
0
Ritor1
parents:
diff changeset
417 extern char bRecallingBeacon; // weak
Ritor1
parents:
diff changeset
418 extern int uLastPointedObjectID; // weak
Ritor1
parents:
diff changeset
419 //extern unsigned __int8 bMonsterInfoUI_bDollInitialized;
1838
211dfe2d8db1 changing global char* vars to const char* vars
Grumpy7
parents: 1829
diff changeset
420 extern std::array<const char *, 44> aSpellNames;
11
66319a734368 16.01.13(work)
Ritor1
parents: 2
diff changeset
421 extern int pMainScreenNum; // weak
1091
9c7eb4037567 data moving
Gloval
parents: 1078
diff changeset
422 extern int dword_506980_uW; // weak
9c7eb4037567 data moving
Gloval
parents: 1078
diff changeset
423 extern int dword_506984_uZ; // weak
9c7eb4037567 data moving
Gloval
parents: 1078
diff changeset
424 extern int dword_506988_uY; // weak
9c7eb4037567 data moving
Gloval
parents: 1078
diff changeset
425 extern int dword_50698C_uX; // weak
1031
f93d17337113 UI stuff.
Nomad
parents: 1029
diff changeset
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
38bfbee60146 Menu options
Ritor1
parents: 357
diff changeset
429 extern int KeyboardPageNum; // weak
0
Ritor1
parents:
diff changeset
430 extern int uRestUI_FoodRequiredToRest;
Ritor1
parents:
diff changeset
431 extern int dword_506F14; // weak
1396
e6908823897f Research on #62
Nomad
parents: 1393
diff changeset
432 extern int _506F18_num_minutes_to_sleep; // weak
0
Ritor1
parents:
diff changeset
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
Ritor1
parents:
diff changeset
435 extern int uNumVisibleWindows;
Ritor1
parents:
diff changeset
436 extern char bFlashHistoryBook; // weak
Ritor1
parents:
diff changeset
437 extern char bFlashAutonotesBook; // weak
Ritor1
parents:
diff changeset
438 extern char bFlashQuestBook; // weak
569
f451efdb7c8b * Party buff icons drawing (right panel)
Nomad
parents: 566
diff changeset
439 extern int uTextureID_PlayerBuff_PainReflection; // weak
f451efdb7c8b * Party buff icons drawing (right panel)
Nomad
parents: 566
diff changeset
440 extern int uTextureID_PlayerBuff_Hammerhands; // weak
f451efdb7c8b * Party buff icons drawing (right panel)
Nomad
parents: 566
diff changeset
441 extern int uTextureID_PlayerBuff_Preservation; // weak
f451efdb7c8b * Party buff icons drawing (right panel)
Nomad
parents: 566
diff changeset
442 extern int uTextureID_PlayerBuff_Bless; // weak
319
5a66be213cff Actor::Die
Nomad
parents: 316
diff changeset
443 extern int uTextureID_Btn_QuickReference; // weak
1507
a109bb203e28 UIGame.cpp cleaning(continue) GameUI_DrawMinimap
Ritor1
parents: 1493
diff changeset
444 extern int uTextureID_Compas; // dword_5079B4
0
Ritor1
parents:
diff changeset
445 extern int dword_5079C8; // weak
Ritor1
parents:
diff changeset
446 extern int dword_5079CC; // weak
Ritor1
parents:
diff changeset
447 extern int dword_5079D0; // weak
1507
a109bb203e28 UIGame.cpp cleaning(continue) GameUI_DrawMinimap
Ritor1
parents: 1493
diff changeset
448 extern int uTextureID_Minimap_Loop; // dword_5079D8
319
5a66be213cff Actor::Die
Nomad
parents: 316
diff changeset
449 extern struct GUIButton *pBtn_ZoomOut; // idb
5a66be213cff Actor::Die
Nomad
parents: 316
diff changeset
450 extern struct GUIButton *pBtn_ZoomIn; // idb
0
Ritor1
parents:
diff changeset
451 extern unsigned int uGameUIFontShadow;
Ritor1
parents:
diff changeset
452 extern unsigned int uGameUIFontMain;
Ritor1
parents:
diff changeset
453 extern int dword_507B00_spell_info_to_draw_in_popup; // weak
1838
211dfe2d8db1 changing global char* vars to const char* vars
Grumpy7
parents: 1829
diff changeset
454 extern std::array<const char *, 12> aMonthNames;
211dfe2d8db1 changing global char* vars to const char* vars
Grumpy7
parents: 1829
diff changeset
455 extern std::array<const char *, 7> aDayNames;
211dfe2d8db1 changing global char* vars to const char* vars
Grumpy7
parents: 1829
diff changeset
456 extern std::array<const char *, 9> aSpellSchoolNames;
211dfe2d8db1 changing global char* vars to const char* vars
Grumpy7
parents: 1829
diff changeset
457 extern std::array<const char *, 7> aAttributeNames;
0
Ritor1
parents:
diff changeset
458 extern unsigned int uActiveCharacter;
Ritor1
parents:
diff changeset
459 extern int dword_507BF0_is_there_popup_onscreen; // weak
1458
934074e7fcc1 ModalWindow
Nomad
parents: 1455
diff changeset
460 extern int awards_scroll_bar_created; // weak
1091
9c7eb4037567 data moving
Gloval
parents: 1078
diff changeset
461 extern int dword_507CC0_activ_ch; // weak
569
f451efdb7c8b * Party buff icons drawing (right panel)
Nomad
parents: 566
diff changeset
462 extern __int64 GameUI_RightPanel_BookFlashTimer; // weak
0
Ritor1
parents:
diff changeset
463 extern int _507CD4_RestUI_hourglass_anim_controller; // weak
1408
204cce84300b FindSound
Ritor1
parents: 1407
diff changeset
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
65379a50e4eb Portals in indoor (continue)
Ritor1
parents: 1312
diff changeset
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
e1e4a8a20b5f _46А6АС_GetActorsInViewport
Ritor1
parents: 2154
diff changeset
470 extern std::array<int, 100> _50BF30_actors_in_viewport_ids; // weak
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 701
diff changeset
471 extern char town_portal_caster_id; // weak
0
Ritor1
parents:
diff changeset
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
Ritor1
parents:
diff changeset
474 extern unsigned int uIconID_TurnStop;
Ritor1
parents:
diff changeset
475 extern unsigned int uIconID_TurnHour;
Ritor1
parents:
diff changeset
476 extern int uIconID_CharacterFrame; // idb
Ritor1
parents:
diff changeset
477 extern unsigned int uIconID_TurnStart;
Ritor1
parents:
diff changeset
478 extern int dword_50C994; // weak
Ritor1
parents:
diff changeset
479 extern int dword_50C998_turnbased_icon_1A; // weak
Ritor1
parents:
diff changeset
480 extern int uSpriteID_Spell11; // idb
1682
3c451fd02fcf OnInventoryLeftClick cleanup
Grumpy7
parents: 1658
diff changeset
481 extern bool _50C9A0_IsEnchantingInProgress; // weak
984
d982fffb8b96 CharacterUI_InventoryTab_Draw cleaned.
Nomad
parents: 983
diff changeset
482 extern int _50C9A8_item_enchantment_timer; // weak
1682
3c451fd02fcf OnInventoryLeftClick cleanup
Grumpy7
parents: 1658
diff changeset
483 extern int _50C9D0_AfterEnchClickEventId; // weak
3c451fd02fcf OnInventoryLeftClick cleanup
Grumpy7
parents: 1658
diff changeset
484 extern int _50C9D4_AfterEnchClickEventSecondParam; // weak
3c451fd02fcf OnInventoryLeftClick cleanup
Grumpy7
parents: 1658
diff changeset
485 extern int _50C9D8_AfterEnchClickEventTimeout; // weak
0
Ritor1
parents:
diff changeset
486 extern int dword_50C9DC; // weak
Ritor1
parents:
diff changeset
487 extern struct NPCData *ptr_50C9E0;
1012
9e823ad5eaa6 second msg_queue returned
Gloval
parents: 1006
diff changeset
488 //extern int dword_50C9E8; // idb
9e823ad5eaa6 second msg_queue returned
Gloval
parents: 1006
diff changeset
489 //extern int dword_50C9EC[]; // 50C9EC
437
0a1ea44b4a0a ui mesages & spellcasting
Nomad
parents: 434
diff changeset
490 extern int dword_50CDC8;
0
Ritor1
parents:
diff changeset
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
9c7eb4037567 data moving
Gloval
parents: 1078
diff changeset
497
0
Ritor1
parents:
diff changeset
498 extern int bRingsShownInCharScreen; // weak
Ritor1
parents:
diff changeset
499
Ritor1
parents:
diff changeset
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
f451efdb7c8b * Party buff icons drawing (right panel)
Nomad
parents: 566
diff changeset
503 extern unsigned int uIconIdx_FlySpell;
f451efdb7c8b * Party buff icons drawing (right panel)
Nomad
parents: 566
diff changeset
504 extern unsigned int uIconIdx_WaterWalk;
0
Ritor1
parents:
diff changeset
505 extern int dword_576E28; // weak
1051
05c62d166182 004C1D2B cleaned
Nomad
parents: 1050
diff changeset
506 extern int _576E2C_current_minimap_zoom; // weak
0
Ritor1
parents:
diff changeset
507 extern __int64 _5773B8_event_timer; // weak
629
59713bb36033 houses func moved to uihouses
Gloval
parents: 623
diff changeset
508
0
Ritor1
parents:
diff changeset
509 extern int dword_591084; // weak
Ritor1
parents:
diff changeset
510 extern struct Actor *pDialogue_SpeakingActor;
Ritor1
parents:
diff changeset
511 extern unsigned int uDialogueType;
602
628694cd5744 Margaret working
zipi
parents: 601
diff changeset
512 extern signed int sDialogue_SpeakingActorNPC_ID;
0
Ritor1
parents:
diff changeset
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
Ritor1
parents:
diff changeset
515 extern int uCurrentHouse_Animation; // weak
Ritor1
parents:
diff changeset
516 extern char *dword_591164_teleport_map_name; // idb
Ritor1
parents:
diff changeset
517 extern int dword_591168_teleport_speedz; // weak
Ritor1
parents:
diff changeset
518 extern int dword_59116C_teleport_directionx; // weak
Ritor1
parents:
diff changeset
519 extern int dword_591170_teleport_directiony; // weak
Ritor1
parents:
diff changeset
520 extern int dword_591174_teleportz; // weak
Ritor1
parents:
diff changeset
521 extern int dword_591178_teleporty; // weak
Ritor1
parents:
diff changeset
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
fd3bea473c0c fix HouseNpcdata array addresiing
Gloval
parents: 1209
diff changeset
524 extern std::array<struct NPCData *, 7> HouseNPCData; //0this array size temporarily increased to 60 from 6 to work aroud house overflow
1589
Ritor1
parents: 1546
diff changeset
525 extern GUIButton* HouseNPCPortraitsButtonsList[6];
0
Ritor1
parents:
diff changeset
526 extern struct Texture *pTexture_591428;
Ritor1
parents:
diff changeset
527 extern struct Texture *pTexture_outside; // idb
Ritor1
parents:
diff changeset
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
0dbf780e247f CompareVariable part 1
Ritor1
parents: 468
diff changeset
530 extern int EvtTargetObj; // weak
434
137c59c3dbc4 Temple of Moon and Dragon Lair can now be entered.
Nomad
parents: 428
diff changeset
531 extern int _unused_5B5924_is_travel_ui_drawn; // 005B5924
0
Ritor1
parents:
diff changeset
532 extern int _5B65A8_npcdata_uflags_or_other; // weak
Ritor1
parents:
diff changeset
533 extern int _5B65AC_npcdata_fame_or_other; // weak
Ritor1
parents:
diff changeset
534 extern int _5B65B0_npcdata_rep_or_other; // weak
Ritor1
parents:
diff changeset
535 extern int _5B65B4_npcdata_loword_house_or_other; // weak
Ritor1
parents:
diff changeset
536 extern int _5B65B8_npcdata_hiword_house_or_other; // weak
Ritor1
parents:
diff changeset
537 extern int dword_5B65BC; // weak
Ritor1
parents:
diff changeset
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
41c36ecc9f32 MapsLongTimer.h
Ritor1
parents: 2374
diff changeset
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
Ritor1
parents:
diff changeset
542 extern int dword_5B65D0_dialogue_actor_npc_id; // weak
Ritor1
parents:
diff changeset
543 extern int dword_5C3418; // weak
Ritor1
parents:
diff changeset
544 extern int dword_5C341C; // weak
1470
c987b5ed09af footer array fix
zipi
parents: 1459
diff changeset
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
b27dd658ea77 Taveling by foot fixed.
Nomad
parents: 778
diff changeset
548 extern unsigned int GameUI_Footer_TimeLeft;
b27dd658ea77 Taveling by foot fixed.
Nomad
parents: 778
diff changeset
549 extern int bForceDrawFooter; // weak
2154
9bd7522cdbbb Render decoupling.
Nomad
parents: 2152
diff changeset
550 extern int _5C35C0_force_party_death; // weak
0
Ritor1
parents:
diff changeset
551 extern int bDialogueUI_InitializeActor_NPC_ID; // weak
Ritor1
parents:
diff changeset
552 extern char *p2DEventsTXT_Raw;
629
59713bb36033 houses func moved to uihouses
Gloval
parents: 623
diff changeset
553
0
Ritor1
parents:
diff changeset
554 extern int dword_5C35D4; // weak
1838
211dfe2d8db1 changing global char* vars to const char* vars
Grumpy7
parents: 1829
diff changeset
555 extern std::array<const char *, 2> aAMPMNames;
0
Ritor1
parents:
diff changeset
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
dfc9484ed94c GetDayPart and Journal_Draw
Ritor1
parents: 1452
diff changeset
561 extern std::array<char, 100> Journal_limitation_factor; // weak
0
Ritor1
parents:
diff changeset
562 extern int ui_current_text_color; // weak
Ritor1
parents:
diff changeset
563 extern __int64 qword_5C6DF0; // weak
Ritor1
parents:
diff changeset
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
Ritor1
parents:
diff changeset
573 extern char *pHealthPointsAttributeDescription;
Ritor1
parents:
diff changeset
574 extern char *pSpellPointsAttributeDescription;
Ritor1
parents:
diff changeset
575 extern char *pArmourClassAttributeDescription;
Ritor1
parents:
diff changeset
576 extern char *pPlayerConditionAttributeDescription; // idb
Ritor1
parents:
diff changeset
577 extern char *pFastSpellAttributeDescription;
Ritor1
parents:
diff changeset
578 extern char *pPlayerAgeAttributeDescription;
Ritor1
parents:
diff changeset
579 extern char *pPlayerLevelAttributeDescription;
Ritor1
parents:
diff changeset
580 extern char *pPlayerExperienceAttributeDescription;
Ritor1
parents:
diff changeset
581 extern char *pAttackBonusAttributeDescription;
Ritor1
parents:
diff changeset
582 extern char *pAttackDamageAttributeDescription;
Ritor1
parents:
diff changeset
583 extern char *pMissleBonusAttributeDescription;
Ritor1
parents:
diff changeset
584 extern char *pMissleDamageAttributeDescription;
Ritor1
parents:
diff changeset
585 extern char *pFireResistanceAttributeDescription;
Ritor1
parents:
diff changeset
586 extern char *pAirResistanceAttributeDescription;
Ritor1
parents:
diff changeset
587 extern char *pWaterResistanceAttributeDescription;
Ritor1
parents:
diff changeset
588 extern char *pEarthResistanceAttributeDescription;
Ritor1
parents:
diff changeset
589 extern char *pMindResistanceAttributeDescription;
Ritor1
parents:
diff changeset
590 extern char *pBodyResistanceAttributeDescription;
Ritor1
parents:
diff changeset
591 extern char *pSkillPointsAttributeDescription;
Ritor1
parents:
diff changeset
592 extern char *pClassTXT_Raw;
Ritor1
parents:
diff changeset
593 extern char *pStatsTXT_Raw;
Ritor1
parents:
diff changeset
594 extern char *pSkillDescTXT_Raw;
Ritor1
parents:
diff changeset
595 extern struct FactionTable *pFactionTable;
1263
73269755dd89 arcomage renaming&cleaning
Gloval
parents: 1256
diff changeset
596 //extern std::array<char, 777> byte_5C8D1A; // weak
189
038a4d09406f new texts file, fix text rendender error
Gloval
parents: 180
diff changeset
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
211dfe2d8db1 changing global char* vars to const char* vars
Grumpy7
parents: 1829
diff changeset
599 extern std::array<const char *, 14> pSomeItemsNames;
189
038a4d09406f new texts file, fix text rendender error
Gloval
parents: 180
diff changeset
600
0
Ritor1
parents:
diff changeset
601 extern char *pMonstersTXT_Raw;
Ritor1
parents:
diff changeset
602 extern char *pMonsterPlacementTXT_Raw;
Ritor1
parents:
diff changeset
603 extern char *pSpellsTXT_Raw;
Ritor1
parents:
diff changeset
604 extern char *pMapStatsTXT_Raw;
Ritor1
parents:
diff changeset
605 extern char *pHostileTXT_Raw;
Ritor1
parents:
diff changeset
606 extern char *pPotionsTXT_Raw;
Ritor1
parents:
diff changeset
607 extern char *pPotionNotesTXT_Raw;
233
0df4136b6aac store_line
Gloval
parents: 227
diff changeset
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
Ritor1
parents:
diff changeset
610 extern int _6807E0_num_decorations_with_sounds_6807B8; // weak
1459
2ca62c9e7b3c Function names
Nomad
parents: 1458
diff changeset
611 extern std::array<int, 3000> event_triggers; // 6807E8
1503
4ce525fe9ea9 Fix types.
yoctozepto
parents: 1493
diff changeset
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
Ritor1
parents:
diff changeset
614 extern float flt_69B138_dist; // weak
Ritor1
parents:
diff changeset
615 extern char byte_69BD41_unused; // weak
Ritor1
parents:
diff changeset
616 extern unsigned int uTextureID_x_u;
Ritor1
parents:
diff changeset
617 extern unsigned int uTextureID_LS_saveU;
Ritor1
parents:
diff changeset
618 extern unsigned int uTextureID_LS_loadU;
Ritor1
parents:
diff changeset
619 extern unsigned int uTextureID_AR_DN_DN;
Ritor1
parents:
diff changeset
620 extern unsigned int uTextureID_AR_UP_DN;
Ritor1
parents:
diff changeset
621 extern unsigned int uTextureID_LS_;
Ritor1
parents:
diff changeset
622 extern unsigned int uTextureID_x_d;
Ritor1
parents:
diff changeset
623 extern unsigned int uTextureID_save_up;
Ritor1
parents:
diff changeset
624 extern unsigned int uTextureID_load_up;
Ritor1
parents:
diff changeset
625 extern unsigned int uTextureID_loadsave;
2
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
626 extern int pSaveListPosition; // weak
0
Ritor1
parents:
diff changeset
627 extern unsigned int uLoadGameUI_SelectedSlot;
Ritor1
parents:
diff changeset
628 extern HWND hInsertCDWindow; // idb
Ritor1
parents:
diff changeset
629 extern int uCPUSpeed; // weak
Ritor1
parents:
diff changeset
630 extern char cMM7GameCDDriveLetter; // idb
2006
30c2b575d25c signed fixes
zipi
parents: 2000
diff changeset
631 extern enum MENU_STATE sCurrentMenuID;
0
Ritor1
parents:
diff changeset
632 extern unsigned int uGameState;
Ritor1
parents:
diff changeset
633 extern int uDefaultTravelTime_ByFoot; // weak
Ritor1
parents:
diff changeset
634 extern int day_attrib; // weak
Ritor1
parents:
diff changeset
635 extern int day_fogrange_1; // weak
Ritor1
parents:
diff changeset
636 extern int day_fogrange_2; // weak
Ritor1
parents:
diff changeset
637 extern struct TileTable *pTileTable; // idb
Ritor1
parents:
diff changeset
638 extern int outdoor_grid_band_1; // idb
Ritor1
parents:
diff changeset
639 extern int outdoor_grid_band_2; // idb
Ritor1
parents:
diff changeset
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
Ritor1
parents:
diff changeset
643 extern int _6BE134_odm_main_tile_group; // weak
Ritor1
parents:
diff changeset
644 extern int dword_6BE138; // weak
Ritor1
parents:
diff changeset
645 extern int dword_6BE13C_uCurrentlyLoadedLocationID; // weak
Ritor1
parents:
diff changeset
646 extern float fWalkSpeedMultiplier; // weak
Ritor1
parents:
diff changeset
647 extern float fBackwardWalkSpeedMultiplier; // weak
Ritor1
parents:
diff changeset
648 extern float fTurnSpeedMultiplier; // weak
Ritor1
parents:
diff changeset
649 extern float flt_6BE150_look_up_down_dangle; // weak
Ritor1
parents:
diff changeset
650 //extern char pMM7WindowClassName[]; // idb
Ritor1
parents:
diff changeset
651 //extern HINSTANCE hInstance; // idb
Ritor1
parents:
diff changeset
652 //extern char *pCmdLine;
1802
633f81bb3ae7 HWND -> class OSWindow
Nomad
parents: 1758
diff changeset
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
Ritor1
parents:
diff changeset
655 extern unsigned int uLevelMapStatsID;
2061
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
656
2069
259df09dfb50 32bits almost there
Nomad
parents: 2061
diff changeset
657 extern bool FORCE_16_BITS; // related to GAME_SETTINGS_INVALID_RESOLUTION
2061
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
658 #define GAME_SETTINGS_0001 0x0001
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
659 #define GAME_SETTINGS_INVALID_RESOLUTION 0x0002
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
660 #define GAME_SETTINGS_NO_INTRO 0x0004
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
661 #define GAME_SETTINGS_NO_LOGO 0x0008
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
662 #define GAME_SETTINGS_NO_SOUND 0x0010
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
663 #define GAME_SETTINGS_NO_WALK_SOUND 0x0020
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
664 #define GAME_SETTINGS_NO_HOUSE_ANIM 0x0040
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
665 #define GAME_SETTINGS_0080_SKIP_USER_INPUT_THIS_FRAME 0x0080
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
666 #define GAME_SETTINGS_APP_INACTIVE 0x0100
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
667 #define GAME_SETTINGS_0200_EVENT_TIMER 0x0200
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
668 #define GAME_SETTINGS_0400_MISC_TIMER 0x0400
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
669 #define GAME_SETTINGS_0800 0x0800
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
670 #define GAME_SETTINGS_1000 0x1000
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
671 #define GAME_SETTINGS_2000 0x2000
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
672 #define GAME_SETTINGS_4000 0x4000
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
673 extern int dword_6BE364_game_settings_1; // GAME_SETTINGS_*
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
674
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
675 #define DEBUG_SETTINGS_RUN_IN_WIDOW 0x0001
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
676 #define DEBUG_SETTINGS_0002_SHOW_FR 0x0002
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
677 #define DEBUG_SETTINGS_NO_ACTORS 0x0004
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
678 #define DEBUG_SETTINGS_NO_DECORATIONS 0x0008
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
679 #define DEBUG_SETTINGS_NO_DAMAGE 0x0010
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
680 extern int dword_6BE368_debug_settings_2; // DEBUG_SETTINGS_*
b2a434d65344 GAME_SETTINGS_* defines introduced
Nomad
parents: 2060
diff changeset
681
0
Ritor1
parents:
diff changeset
682 extern unsigned __int8 bCanLoadFromCD;
Ritor1
parents:
diff changeset
683 extern int bShowDamage; // idb
Ritor1
parents:
diff changeset
684 extern unsigned int bAlwaysRun;
Ritor1
parents:
diff changeset
685 extern unsigned int bFlipOnExit;
Ritor1
parents:
diff changeset
686 extern unsigned int uTurnSpeed;
Ritor1
parents:
diff changeset
687 extern float flt_6BE3A0; // weak
Ritor1
parents:
diff changeset
688 extern float flt_6BE3A4_debug_recmod1;
Ritor1
parents:
diff changeset
689 extern float flt_6BE3A8_debug_recmod2;
Ritor1
parents:
diff changeset
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
Ritor1
parents:
diff changeset
692 extern char bUnderwater; // weak
Ritor1
parents:
diff changeset
693 extern char bNoNPCHiring; // weak
Ritor1
parents:
diff changeset
694 extern unsigned int bNoVideo;
Ritor1
parents:
diff changeset
695 extern bool bNoIntro;
Ritor1
parents:
diff changeset
696 extern bool bNoLogo;
Ritor1
parents:
diff changeset
697 extern bool bNoCD;
Ritor1
parents:
diff changeset
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
Ritor1
parents:
diff changeset
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
24033aa2e1f8 ODM_GetFloorLevel() check height
Ritor1
parents: 2068
diff changeset
711 extern std::array<__int16, 104> odm_floor_face_vert_coord_Y; // word_720F70
24033aa2e1f8 ODM_GetFloorLevel() check height
Ritor1
parents: 2068
diff changeset
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
Ritor1
parents:
diff changeset
716 extern int blv_prev_party_x; // weak
Ritor1
parents:
diff changeset
717 extern int blv_prev_party_z; // weak
Ritor1
parents:
diff changeset
718 extern int blv_prev_party_y; // weak
Ritor1
parents:
diff changeset
719 extern char *dword_722F10; // idb
1310
0665a061132b autonotes and quest tables overflow fixed
Gloval
parents: 1279
diff changeset
720 extern std::array<const char *, 513> pQuestTable;
0
Ritor1
parents:
diff changeset
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
Ritor1
parents:
diff changeset
723 extern int dword_7241C8; // weak
629
59713bb36033 houses func moved to uihouses
Gloval
parents: 623
diff changeset
724
1838
211dfe2d8db1 changing global char* vars to const char* vars
Grumpy7
parents: 1829
diff changeset
725 extern std::array<const char *, 59> aNPCProfessionNames;
0
Ritor1
parents:
diff changeset
726 extern char *pAwardsTXT_Raw;
Ritor1
parents:
diff changeset
727 extern char *pScrollsTXT_Raw;
Ritor1
parents:
diff changeset
728 extern char *pMerchantsTXT_Raw;
1838
211dfe2d8db1 changing global char* vars to const char* vars
Grumpy7
parents: 1829
diff changeset
729 extern std::array<const char *, 7> pMerchantsBuyPhrases;
211dfe2d8db1 changing global char* vars to const char* vars
Grumpy7
parents: 1829
diff changeset
730 extern std::array<const char *, 7> pMerchantsSellPhrases;
211dfe2d8db1 changing global char* vars to const char* vars
Grumpy7
parents: 1829
diff changeset
731 extern std::array<const char *, 7> pMerchantsRepairPhrases;
211dfe2d8db1 changing global char* vars to const char* vars
Grumpy7
parents: 1829
diff changeset
732 extern std::array<const char *, 7> pMerchantsIdentifyPhrases;
0
Ritor1
parents:
diff changeset
733 extern char *pTransitionsTXT_Raw;
Ritor1
parents:
diff changeset
734 extern char *pAutonoteTXT_Raw;
Ritor1
parents:
diff changeset
735 extern char *pQuestsTXT_Raw;
67
3b4f8bd48e3b 25.01.13 (I did sky)
Ritor1
parents: 46
diff changeset
736 extern unsigned int uNumTerrainNormals;
0
Ritor1
parents:
diff changeset
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
Ritor1
parents:
diff changeset
740 extern int dword_A74C88; // weak
Ritor1
parents:
diff changeset
741 extern unsigned int uPlayerCreationUI_SkySliderPos;
Ritor1
parents:
diff changeset
742 extern int uPlayerCreationUI_ArrowAnim;
Ritor1
parents:
diff changeset
743 extern unsigned int uPlayerCreationUI_SelectedCharacter;
Ritor1
parents:
diff changeset
744 extern int dword_A74CDC; // weak
Ritor1
parents:
diff changeset
745 extern struct Texture *pTexture_PlayerFaceMask;
Ritor1
parents:
diff changeset
746 extern struct Texture *pTexture_PlayerFaceEradicated;
Ritor1
parents:
diff changeset
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
e1e4a8a20b5f _46А6АС_GetActorsInViewport
Ritor1
parents: 2154
diff changeset
749 extern __int64 _A750D8_player_speech_timer; // qword_A750D8
1406
d071e0e9ba75 Explosion Traps fix
Ritor1
parents: 1396
diff changeset
750 extern enum PlayerSpeech PlayerSpeechID;
1407
d4f57df4c299 PlayerSpeechID and uSpeakingCharacter
Ritor1
parents: 1406
diff changeset
751 extern int uSpeakingCharacter; // weak
1838
211dfe2d8db1 changing global char* vars to const char* vars
Grumpy7
parents: 1829
diff changeset
752 extern std::array<const char *, 36> pClassNames;
211dfe2d8db1 changing global char* vars to const char* vars
Grumpy7
parents: 1829
diff changeset
753 extern std::array<const char *, 19> aCharacterConditionNames;
211dfe2d8db1 changing global char* vars to const char* vars
Grumpy7
parents: 1829
diff changeset
754 extern std::array<const char *, 38> pSkillNames;
0
Ritor1
parents:
diff changeset
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
1776d4f033a7 WeaponShop cleared
Ritor1
parents: 1729
diff changeset
758 extern std::array<__int16, 6> weapons_Ypos; // word_F8B158
496
0e20e886365d guilds ....
Gloval
parents: 495
diff changeset
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
61458df2cb4f bountyHunting fix
Ritor1
parents: 1519
diff changeset
761 extern __int16 bountyHunting_monster_id_for_hunting; // weak
61458df2cb4f bountyHunting fix
Ritor1
parents: 1519
diff changeset
762 extern const char *bountyHunting_text; // idb
484
4bd56919f075 avard quest guild bits
Gloval
parents: 480
diff changeset
763 extern int contract_approved; // weak
492
Gloval
parents: 486
diff changeset
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
ac44e716d051 DrawDialogueUI logic restored
Nomad
parents: 265
diff changeset
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
Ritor1
parents:
diff changeset
768 extern int dword_F8B1D8; // weak
Ritor1
parents:
diff changeset
769 extern int dword_F8B1E0; // weak
Ritor1
parents:
diff changeset
770 extern int dword_F8B1E4; // weak
827
085eb19b7ffd mr.Malvik
Ritor1
parents: 819
diff changeset
771 extern const char *current_npc_text; // 0xF8B1E8
248
37dcbe8f3cca Dialogue stuff
Nomad
parents: 247
diff changeset
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
d5b16a44d9b3 frame_table parser, new files for UI func
Gloval
parents: 698
diff changeset
775
0
Ritor1
parents:
diff changeset
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
b9adf4f414f6 submenu Other
Ritor1
parents: 2253
diff changeset
779 extern bool wizard_eye;
b9adf4f414f6 submenu Other
Ritor1
parents: 2253
diff changeset
780 extern bool change_seasons;
b9adf4f414f6 submenu Other
Ritor1
parents: 2253
diff changeset
781 extern bool all_magic;
b9adf4f414f6 submenu Other
Ritor1
parents: 2253
diff changeset
782 extern bool debug_information;
b9adf4f414f6 submenu Other
Ritor1
parents: 2253
diff changeset
783 extern bool show_picked_face;
b9adf4f414f6 submenu Other
Ritor1
parents: 2253
diff changeset
784 extern bool draw_portals_loops;
b9adf4f414f6 submenu Other
Ritor1
parents: 2253
diff changeset
785 extern bool new_speed;
b9adf4f414f6 submenu Other
Ritor1
parents: 2253
diff changeset
786 extern bool bSnow;
2320
847aba0b7f82 draw terrain distance
Ritor1
parents: 2289
diff changeset
787 extern bool draw_terrain_dist_mist;