27 #ifndef AVALANCHE_AVALANCHE_H 28 #define AVALANCHE_AVALANCHE_H 30 #include "avalanche/console.h" 31 #include "avalanche/graphics.h" 32 #include "avalanche/parser.h" 33 #include "avalanche/avalot.h" 34 #include "avalanche/dialogs.h" 35 #include "avalanche/background.h" 36 #include "avalanche/sequence.h" 37 #include "avalanche/timer.h" 38 #include "avalanche/animation.h" 39 #include "avalanche/dropdown.h" 40 #include "avalanche/closing.h" 41 #include "avalanche/sound.h" 42 #include "avalanche/nim.h" 43 #include "avalanche/clock.h" 44 #include "avalanche/ghostroom.h" 45 #include "avalanche/help.h" 46 #include "avalanche/shootemup.h" 47 #include "avalanche/mainmenu.h" 48 #include "avalanche/highscore.h" 50 #include "common/error.h" 51 #include "common/serializer.h" 53 #include "engines/engine.h" 55 #include "graphics/cursorman.h" 63 struct AvalancheGameDescription;
68 static const int kSavegameVersion = 2;
107 uint32 getFeatures()
const;
108 const char *getGameId()
const;
111 const char *getCopyrightString()
const;
119 bool loadGame(
const int16 slot);
121 uint32 getTimeInSeconds();
133 static const bool kThing =
true;
134 static const bool kPerson =
false;
136 static const char kSpludwicksOrder[3];
138 static const uint16 kNotes[12];
148 bool _objects[kObjectNum];
157 byte _drawbridgeOpen;
160 bool _onionInVinegar;
161 byte _givenToSpludwick;
163 byte _cardiffQuestionNum;
168 bool _givenBadgeToIby;
169 bool _friarWillTieYouUp;
172 bool _talkedToCrapulus;
174 bool _bellsAreRinging;
175 bool _standingOnDais;
177 bool _arrowInTheDoor;
178 Common::String _favoriteDrink, _favoriteSong, _worstPlaceOnEarth, _spareEvening;
182 bool _mushroomGrowing;
183 bool _crapulusWillTell;
184 bool _enterCatacombsFromLustiesRoom;
188 bool _enteredLustiesRoomAsMonk;
189 byte _catacombX, _catacombY;
190 bool _avvysInTheCupboard;
192 bool _givenPotionToGeida;
193 bool _lustieIsAsleep;
196 byte _spurgeTalkCount;
198 bool _takenMushroom, _givenPenToAyles, _askedDogfoodAboutNim;
201 bool _showDebugLines;
209 bool _animationsEnabled;
210 char _objectList[10];
221 byte _cp, _ledStatus;
229 bool _doingSpriteRun;
234 void callVerb(VerbCode
id);
235 void loadBackground(byte num);
236 void loadRoom(byte num);
237 void thinkAbout(byte
object,
bool type);
238 void incScore(byte num);
240 void refreshObjectList();
244 void drawDirection();
246 uint16 bearing(byte whichPed);
256 bool getFlag(
char x);
257 bool decreaseMoney(uint16 amount);
263 void openDoor(Room whither, byte ped, byte magicnum);
264 void flipRoom(Room room, byte ped);
266 void setRoom(People persId, Room roomId);
267 Room getRoom(People persId);
269 static const int16 kMaxSprites = 2;
270 static Room _whereIs[29];
274 byte _fxPal[16][16][3];
276 bool _spludwickAtHome;
277 bool _passedCwytalotInHerts;
280 byte _lastRoomNotMap;
281 byte _roomCount[100];
285 int8 _scoreToDisplay[3];
290 void initVariables();
296 void findPeople(byte room);
297 void putGeidaAt(byte whichPed, byte ped);
299 void enterRoom(Room room, byte ped);
300 void exitRoom(byte x);
306 void loadAlso(byte num);
307 void resetAllVariables();
308 void resetVariables();
313 #endif // AVALANCHE_AVALANCHE_H
Definition: ghostroom.h:43
EngineFeature
Definition: engine.h:258
Definition: animation.h:32
ErrorCode
Definition: error.h:47
Definition: avalanche.h:77
Definition: graphics.h:50
Definition: serializer.h:79
Definition: highscore.h:39
Definition: algorithm.h:29
Definition: animation.h:92
Definition: sequence.h:35
Definition: detection.h:32
Definition: background.h:47