1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
|
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef HOPKINS_GLOBALS_H
#define HOPKINS_GLOBALS_H
#include "common/scummsys.h"
#include "common/str.h"
namespace Hopkins {
struct ZonePItem {
int field0;
int field2;
int field4;
};
struct LigneItem {
int field0;
int field2;
int field4;
int field6;
int field8;
byte *field12;
};
struct LigneZoneItem {
int field0;
int field2;
byte *field4;
};
struct CarreZoneItem {
int field0;
};
struct BqeAnimItem {
byte *data;
int field4;
};
struct BankItem {
byte *data;
int8 field4;
Common::String filename1;
int fileHeader;
int field1A;
uint32 field1C;
Common::String filename2;
};
struct ListeItem {
int field0;
int field2;
int field4;
int x2;
int y2;
};
struct BobItem {
int field0;
byte *field4;
int field8;
int fieldA;
int fieldC;
int fieldE;
int field10;
int field12;
int field14;
int field16;
byte *field18;
int field1A;
int field1C;
int field1E;
int field20;
int field22;
int field24;
int field26;
int field28;
int field2A;
int field2C;
byte *field30;
int field34;
int field36;
int field38;
int field3A;
int field46;
};
struct Liste2Item {
int field0;
int field2;
int field4;
int field6;
int field8;
};
struct BlAnimItem {
uint32 v1;
uint32 v2;
};
struct VBobItem {
byte *field0;
int field4;
int field6;
int field8;
int fieldA;
int fieldC;
byte *field10;
byte *field1C;
};
struct ObjetWItem {
byte field0;
byte field1;
byte field2;
byte field3;
byte field4;
byte field5;
byte field6;
byte field7;
};
struct BlocItem {
uint16 field0;
int x1;
int y1;
int x2;
int y2;
};
struct TriItem {
int field0;
int field2;
int field4;
int field6;
};
class HopkinsEngine;
/**
* Engine Globals
*/
class Globals {
private:
HopkinsEngine *_vm;
public:
int FR;
int SVGA;
int internet;
int PUBEXIT;
bool XFULLSCREEN;
int XSETMODE;
int XZOOM;
bool XFORCE16;
bool XFORCE8;
bool CARD_SB;
int PERSO_TYPE;
int vitesse;
int INSTALL_TYPE;
Common::String HOPIMAGE;
Common::String HOPANIM;
Common::String HOPLINK;
Common::String HOPSAVE;
Common::String HOPSOUND;
Common::String HOPMUSIC;
Common::String HOPVOICE;
Common::String HOPANM;
Common::String HOPSEQ;
Common::String FICH_ZONE;
Common::String FICH_TEXTE;
Common::String NFICHIER;
Common::String REP_SPR;
int SOUNDVOL;
int MUSICVOL;
int VOICEVOL;
bool SOUNDOFF;
bool MUSICOFF;
bool VOICEOFF;
bool CENSURE;
int lItCounter;
int lOldItCounter;
int g_old_anim;
int g_old_sens;
int HopkinsArr[140];
void *police;
int police_l;
int police_h;
byte *TETE;
byte *ICONE;
byte *BUF_ZONE;
byte *CACHE_BANQUE[6];
ZonePItem ZoneP[105];
LigneItem Ligne[400];
LigneZoneItem LigneZone[400];
CarreZoneItem CarreZone[100];
BqeAnimItem Bqe_Anim[35];
BankItem Bank[8];
BobItem Bob[36];
Liste2Item Liste2[35];
BlAnimItem BL_ANIM[30];
VBobItem VBob[35];
ObjetWItem ObjetW[300];
BlocItem BLOC[250];
ListeItem Liste[7];
byte *Winventaire;
byte *texte_tmp;
int texte_long;
int TEXTE_FORMATE;
byte *SPRITE_ECRAN;
byte *SAUVEGARDE;
byte *BUFFERTAPE;
byte *essai0;
byte *essai1;
byte *essai2;
byte *Bufferobjet;
int INVENTAIRE[36];
TriItem Tri[51];
byte *inventaire2;
byte *GESTE;
int OBJET_EN_COURS;
int NUM_FICHIER_OBJ;
int nbrligne;
int largeur_boite;
byte *INVENTAIRE_OBJET;
int hauteur_boite;
bool GESTE_FLAG;
byte *FORETSPR;
int FORET;
byte *COUCOU;
byte *chemin;
byte *cache_souris;
byte *BufLig;
byte *Bufferdecor;
byte *ADR_FICHIER_OBJ;
byte *PERSO;
bool redraw;
int OBJL, OBJH;
int Nouv_objet;
int HELICO;
uint32 CAT_POSI;
uint32 CAT_TAILLE;
int iRegul;
bool BPP_NOAFF;
int SORTIE;
int PLANX, PLANY;
int PASSWORD;
int NOSPRECRAN;
int ECRAN;
int OLD_ECRAN;
int Max_Propre;
int Max_Propre_Gen;
int Max_Ligne_Long;
int Max_Perso_Y;
bool DESACTIVE_INVENT;
bool FLAG_VISIBLE;
bool netscape;
bool NOMARCHE;
int NBBLOC;
bool NO_VISU;
byte *OPTION_SPR;
bool OPTION_FLAG;
int opt_anm;
int opt_vitesse;
int opt_scrtype;
int opt_scrspeed;
int opt_sound;
int opt_voice;
int opt_music;
int opt_txt;
int NBTRI;
bool CACHEFLAG;
int AFFINVEN;
Globals();
~Globals();
void setParent(HopkinsEngine *vm);
void setConfig();
void clearAll();
void HOPKINS_DATA();
void INIT_ANIM();
void INIT_VBOB();
void CHARGE_OBJET();
byte *dos_malloc2(int count);
byte *dos_free2(byte *p);
byte *LIBERE_FICHIER(byte *p);
};
#define PTRNUL (byte *)NULL
} // End of namespace Hopkins
#endif /* HOPKINS_GLOBALS_H */
|