22 #ifndef HOPKINS_GLOBALS_H 23 #define HOPKINS_GLOBALS_H 25 #include "common/scummsys.h" 26 #include "common/str.h" 27 #include "common/util.h" 28 #include "common/events.h" 39 int _startSpriteIndex;
46 _startSpriteIndex = 0;
54 enum SauvegardeOffset {
57 , svLastObjectIndex = 3
60 , svLastPrevScreenId = 6
61 , svLastInventoryItem = 8
62 , svLastInvMouseCursor = 9
63 , svLastSavegameSlot = 10
64 , svFreedHostageFl = 80
67 , svForestAvailableFl = 113
68 , svHutBurningFl = 117
69 , svHopkinsCloneFl = 121
70 , svAlternateSpriteFl = 122
71 , svHeavenGuardGoneFl = 123
75 , svCinemaCurtainCond1 = 166
76 , svCinemaCurtainCond2 = 167
77 , svBankAttackAnimPlayedFl = 170
78 , svCopCall1PlayedFl = 171
79 , svCopCall2PlayedFl = 172
82 , svPoolDogGoneFl = 177
83 , svCinemaDogGoneFl = 181
90 , svBombBoxOpenedFl = 220
91 , svBombDisarmedFl = 225
98 , svBaseElevatorCond1 = 311
100 , svSecondElevatorAvailableFl = 318
102 , svEscapeLeftJailFl = 330
125 int16 _inventory[35];
130 for (uint16 i = 0; i <
ARRAYSIZE(_data); i++) {
133 _cloneHopkins.reset();
134 _realHopkins.reset();
136 for (uint16 i = 0; i <
ARRAYSIZE(_inventory); i++) {
154 enum Language { LANG_EN = 0, LANG_FR = 1, LANG_SP = 2};
156 enum PlayerCharacter { CHARACTER_HOPKINS = 0, CHARACTER_HOPKINS_CLONE = 1, CHARACTER_SAMANTHA = 2 };
171 EVENTMODE_DEFAULT = 0,
172 EVENTMODE_IGNORE = 1,
173 EVENTMODE_CREDITS = 3,
187 bool _disableInventFl;
188 bool _cityMapEnabledFl;
189 bool _linuxEndDemoFl;
191 bool _introSpeechOffFl;
193 Directions _oceanDirection;
194 int _actionDirection;
198 int _characterMaxPosY;
200 int _spriteSize[500];
201 PlayerCharacter _characterType;
209 int _creditsLineNumb;
222 int _menuDisplayType;
223 int _menuScrollSpeed;
225 byte *_optionDialogSpr;
226 bool _optionDialogFl;
229 bool _freezeCharacterFl;
230 bool _checkDistanceFl;
231 byte *_characterSpriteBuf;
234 byte *_levelSpriteBuf;
236 EventMode _eventMode;
240 byte *allocMemory(
int count);
241 byte *freeMemory(byte *p);
244 void loadCharacterData();
#define ARRAYSIZE(x)
Definition: util.h:91
Definition: globals.h:120
Definition: globals.h:182
int16 x
Definition: rect.h:46
int16 y
Definition: rect.h:47
Definition: globals.h:146