22#ifndef KINGDOM_KINGDOM_H
23#define KINGDOM_KINGDOM_H
25#include "common/system.h"
26#include "common/scummsys.h"
27#include "common/random.h"
28#include "engines/advancedDetector.h"
29#include "common/error.h"
30#include "engines/engine.h"
32#include "audio/mixer.h"
33#include "common/file.h"
34#include "graphics/screen.h"
35#include "graphics/surface.h"
37#include "common/serializer.h"
39#include "kingdom/console.h"
40#include "kingdom/logic.h"
50 uint16 x1, y1, x2, y2;
54 return (x1 <= p.
x) && (p.
x < x2) && (y1 <= p.
y) && (p.
y < y2);
58 return !(x1 || x2 || y1 || y2);
62 extern const byte _finalFrameTable[];
63 extern const char *
const _rezNames[];
64 extern const uint16 _mapExit[];
65 extern const uint8 _emlTable[];
66 extern const uint8 _zoomTable[81][9][2];
67 extern const uint8 _iconActTable[82][7];
68 extern const uint8 _cursorTable[96];
69 extern const uint8 _teaSeq[6][2];
70 extern const uint8 _hgaSeq[4][2];
71 extern const HotSpot _mouseMapMSFull[51];
72 extern const HotSpot _mouseMapMSDemo[51];
73 extern const HotSpot _mouseMapASFull[128][16];
74 extern const HotSpot _mouseMapASDemo[128][16];
81 int _year, _month, _day;
95 const char *getGameId()
const;
104 uint32 _kingartCount;
106 void displayDebugHotSpots();
126 bool _skylarTimerFlag;
151 bool _oldIconsClosed;
153 bool _demoMovieSkipped;
190 void showPic(
int reznum);
191 void fShowPic(
int reznum);
197 void playMovie(
int movieNum);
200 void drawHelpScreen();
201 void drawRect(uint minX, uint minY, uint maxX, uint maxY,
int color);
202 void drawHotSpot(
const HotSpot &hs,
int color);
203 void drawInventory();
204 void playSound(
int idx);
207 void eraseCursorAsm();
209 void processMap(
int mapNum,
int zoom);
210 void processMapInput(
int mapNum);
211 void drawPic(
int reznum);
212 void displayIcon(
int reznum);
215 void checkMainScreen();
218 void drawIcon(
int x,
int y,
int index);
223 void unloadKingArt();
224 void setCursor(
int cursor);
226 int checkMouseMapAS();
227 void cursorTypeExit();
235 void refreshScreen();
237 void initVariables();
Definition: savefile.h:54
Definition: serializer.h:80
EngineFeature
Definition: engine.h:282
Common::Error loadGameState(int slot) override
Common::Error run() override
Common::Error saveGameState(int slot, const Common::String &desc, bool isAutosave=false) override
bool hasFeature(EngineFeature f) const override
Definition: advancedDetector.h:164