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" 43 enum KingdomDebugChannels {
44 kDebugGeneral = 1 << 0
54 uint16 x1, y1, x2, y2;
58 return (x1 <= p.
x) && (p.
x < x2) && (y1 <= p.
y) && (p.
y < y2);
62 return !(x1 || x2 || y1 || y2);
66 extern const byte _finalFrameTable[];
67 extern const char *
const _rezNames[];
68 extern const uint16 _mapExit[];
69 extern const uint8 _emlTable[];
70 extern const uint8 _zoomTable[81][9][2];
71 extern const uint8 _iconActTable[82][7];
72 extern const uint8 _cursorTable[96];
73 extern const uint8 _teaSeq[6][2];
74 extern const uint8 _hgaSeq[4][2];
75 extern const HotSpot _mouseMapMSFull[51];
76 extern const HotSpot _mouseMapMSDemo[51];
77 extern const HotSpot _mouseMapASFull[128][16];
78 extern const HotSpot _mouseMapASDemo[128][16];
85 int _year, _month, _day;
99 const char *getGameId()
const;
108 uint32 _kingartCount;
110 void displayDebugHotSpots();
130 bool _skylarTimerFlag;
155 bool _oldIconsClosed;
157 bool _demoMovieSkipped;
193 void showPic(
int reznum);
194 void fShowPic(
int reznum);
200 void playMovie(
int movieNum);
203 void drawHelpScreen();
204 void drawRect(uint minX, uint minY, uint maxX, uint maxY,
int color);
205 void drawHotSpot(
const HotSpot &hs,
int color);
206 void drawInventory();
207 void playSound(
int idx);
210 void eraseCursorAsm();
212 void processMap(
int mapNum,
int zoom);
213 void processMapInput(
int mapNum);
214 void drawPic(
int reznum);
215 void displayIcon(
int reznum);
218 void checkMainScreen();
221 void drawIcon(
int x,
int y,
int index);
226 void unloadKingArt();
227 void setCursor(
int cursor);
229 int checkMouseMapAS();
230 void cursorTypeExit();
238 void refreshScreen();
240 void initVariables();
EngineFeature
Definition: engine.h:253
Definition: savefile.h:54
Definition: advancedDetector.h:163
Definition: serializer.h:79
int16 x
Definition: rect.h:46
int16 y
Definition: rect.h:47