22 #ifndef CRUISE_CRUISE_H 23 #define CRUISE_CRUISE_H 25 #include "common/scummsys.h" 26 #include "common/util.h" 27 #include "common/random.h" 29 #include "engines/engine.h" 31 #include "cruise/cruise_main.h" 32 #include "cruise/debugger.h" 33 #include "cruise/sound.h" 45 #define GAME_FRAME_DELAY_1 50 46 #define GAME_FRAME_DELAY_2 100 48 #define MAX_LANGUAGE_STRINGS 25 50 enum LangStringId { ID_PAUSED = 0, ID_INVENTORY = 5, ID_SPEAK_ABOUT = 6, ID_PLAYER_MENU = 7,
51 ID_SAVE = 9, ID_LOAD = 10, ID_RESTART = 11, ID_QUIT = 12};
53 struct CRUISEGameDescription;
60 CursorType _savedCursor;
68 bool loadLanguageStrings();
84 int getGameType()
const;
85 const char *getGameId()
const;
86 uint32 getFeatures()
const;
89 PCSound &sound() {
return *_sound; }
91 const char *langString(LangStringId langId) {
return _langStrings[(int)langId].c_str(); }
93 static const char *getSavegameFile(
int saveGameIdx);
111 static uint32
const cookie = 0x41424344;
118 RectList _dirtyRects;
119 RectList _priorFrameRects;
133 #define BOOT_PRC_NAME "AUTO00.PRC" 136 VAR_MOUSE_X_MODE = 253,
137 VAR_MOUSE_X_POS = 249,
138 VAR_MOUSE_Y_MODE = 251,
139 VAR_MOUSE_Y_POS = 250
143 MOUSE_CURSOR_NORMAL = 0,
149 kCruiseDebugScript = 1 << 0,
150 kCruiseDebugSound = 1 << 1
EngineFeature
Definition: engine.h:250
Common::Error run() override
Common::String getSaveStateName(int slot) const override
Definition: cruise.h:98
Definition: detection.h:27
bool hasFeature(EngineFeature f) const override
Common::Error loadGameState(int slot) override
bool canLoadGameStateCurrently(Common::U32String *msg=nullptr) override
bool canSaveGameStateCurrently(Common::U32String *msg=nullptr) override
void syncSoundSettings() override
Common::Error saveGameState(int slot, const Common::String &desc, bool isAutosave=false) override
Language
Definition: language.h:45