annotate mm7_data.h @ 1650:b0a2b8525483

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