25 #include "engines/engine.h" 26 #include "engines/advancedDetector.h" 28 #include "common/rect.h" 29 #include "common/file.h" 30 #include "common/savefile.h" 31 #include "common/util.h" 32 #include "common/random.h" 34 #include "lure/disk.h" 36 #include "lure/screen.h" 37 #include "lure/events.h" 38 #include "lure/menu.h" 39 #include "lure/strings.h" 40 #include "lure/room.h" 41 #include "lure/fights.h" 42 #include "lure/detection.h" 54 #define RandomNumberGen LureEngine::getReference().rnd() 75 kActionFightMoveRight,
76 kActionFightCursorLeftTop,
77 kActionFightCursorLeftMiddle,
78 kActionFightCursorLeftBottom,
79 kActionFightCursorRightTop,
80 kActionFightCursorRightMiddle,
81 kActionFightCursorRightBottom,
89 struct LureGameDescription;
107 const char *generateSaveName(
int slotNumber);
115 bool _saveLoadAllowed;
131 Disk &disk() {
return *_disk; }
134 int gameToLoad() {
return _gameToLoad; }
135 bool loadGame(uint8 slotNumber);
138 uint8 saveVersion() {
return _saveVersion; }
140 uint32 getFeatures()
const;
141 LureLanguage getLureLanguage()
const;
144 bool isEGA()
const {
return (getFeatures() & GF_EGA) != 0; }
145 bool isKonami()
const {
return (getFeatures() & GF_KONAMI) != 0; }
155 return _saveLoadAllowed && !Fights.isFighting();
158 return _saveLoadAllowed && !Fights.isFighting();
Failed to read a file (permission denied?).
Definition: error.h:62
EngineFeature
Definition: engine.h:253
ErrorCode getCode() const
Definition: error.h:115
Common::Error saveGameState(int slot, const Common::String &desc, bool isAutosave=false) override
Definition: lure.h:150
void pauseEngineIntern(bool pause) override
No error occurred.
Definition: error.h:48
bool canSaveGameStateCurrently(Common::U32String *msg=nullptr) override
Definition: lure.h:157
void syncSoundSettings() override
Common::Error loadGameState(int slot) override
Definition: lure.h:147
bool canLoadGameStateCurrently(Common::U32String *msg=nullptr) override
Definition: lure.h:154
Common::Error run() override
Definition: lure.h:120
Definition: detection.h:36
bool hasFeature(EngineFeature f) const override
Language
Definition: language.h:45