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 60 kActionEndUserWaiting,
61 kActionIncreaseGameSpeed,
62 kActionDecreaseGameSpeed
65 enum LangStringId { ID_PAUSED = 0, ID_INVENTORY = 5, ID_SPEAK_ABOUT = 6, ID_PLAYER_MENU = 7,
66 ID_SAVE = 9, ID_LOAD = 10, ID_RESTART = 11, ID_QUIT = 12};
68 struct CRUISEGameDescription;
75 CursorType _savedCursor;
83 bool loadLanguageStrings();
99 int getGameType()
const;
100 const char *getGameId()
const;
101 uint32 getFeatures()
const;
104 PCSound &sound() {
return *_sound; }
106 const char *langString(LangStringId langId) {
return _langStrings[(int)langId].c_str(); }
108 static const char *getSavegameFile(
int saveGameIdx);
126 static uint32
const cookie = 0x41424344;
133 RectList _dirtyRects;
134 RectList _priorFrameRects;
148 #define BOOT_PRC_NAME "AUTO00.PRC" 151 VAR_MOUSE_X_MODE = 253,
152 VAR_MOUSE_X_POS = 249,
153 VAR_MOUSE_Y_MODE = 251,
154 VAR_MOUSE_Y_POS = 250
158 MOUSE_CURSOR_NORMAL = 0,
164 kCruiseDebugScript = 1 << 0,
165 kCruiseDebugSound = 1 << 1
EngineFeature
Definition: engine.h:253
Common::Error run() override
Common::String getSaveStateName(int slot) const override
Definition: cruise.h:113
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