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;
65 static const int kSavegameVersion = 2;
102 uint32 getFeatures()
const;
103 const char *getGameId()
const;
106 const char *getCopyrightString()
const;
114 bool loadGame(
const int16 slot);
116 uint32 getTimeInSeconds();
128 static const bool kThing =
true;
129 static const bool kPerson =
false;
131 static const char kSpludwicksOrder[3];
133 static const uint16 kNotes[12];
143 bool _objects[kObjectNum];
152 byte _drawbridgeOpen;
155 bool _onionInVinegar;
156 byte _givenToSpludwick;
158 byte _cardiffQuestionNum;
163 bool _givenBadgeToIby;
164 bool _friarWillTieYouUp;
167 bool _talkedToCrapulus;
169 bool _bellsAreRinging;
170 bool _standingOnDais;
172 bool _arrowInTheDoor;
173 Common::String _favoriteDrink, _favoriteSong, _worstPlaceOnEarth, _spareEvening;
177 bool _mushroomGrowing;
178 bool _crapulusWillTell;
179 bool _enterCatacombsFromLustiesRoom;
183 bool _enteredLustiesRoomAsMonk;
184 byte _catacombX, _catacombY;
185 bool _avvysInTheCupboard;
187 bool _givenPotionToGeida;
188 bool _lustieIsAsleep;
191 byte _spurgeTalkCount;
193 bool _takenMushroom, _givenPenToAyles, _askedDogfoodAboutNim;
196 bool _showDebugLines;
204 bool _animationsEnabled;
205 char _objectList[10];
216 byte _cp, _ledStatus;
224 bool _doingSpriteRun;
229 void callVerb(VerbCode
id);
230 void loadBackground(byte num);
231 void loadRoom(byte num);
232 void thinkAbout(byte
object,
bool type);
233 void incScore(byte num);
235 void refreshObjectList();
239 void drawDirection();
241 uint16 bearing(byte whichPed);
251 bool getFlag(
char x);
252 bool decreaseMoney(uint16 amount);
258 void openDoor(Room whither, byte ped, byte magicnum);
259 void flipRoom(Room room, byte ped);
261 void setRoom(People persId, Room roomId);
262 Room getRoom(People persId);
264 static const int16 kMaxSprites = 2;
265 static Room _whereIs[29];
269 byte _fxPal[16][16][3];
271 bool _spludwickAtHome;
272 bool _passedCwytalotInHerts;
275 byte _lastRoomNotMap;
276 byte _roomCount[100];
280 int8 _scoreToDisplay[3];
285 void initVariables();
291 void findPeople(byte room);
292 void putGeidaAt(byte whichPed, byte ped);
294 void enterRoom(Room room, byte ped);
295 void exitRoom(byte x);
301 void loadAlso(byte num);
302 void resetAllVariables();
303 void resetVariables();
308 #endif // AVALANCHE_AVALANCHE_H
Definition: ghostroom.h:43
EngineFeature
Definition: engine.h:253
Definition: animation.h:32
ErrorCode
Definition: error.h:47
Definition: avalanche.h:74
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