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"
36#include "lure/screen.h"
37#include "lure/events.h"
39#include "lure/strings.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,
89struct 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();
ErrorCode getCode() const
Definition: error.h:112
EngineFeature
Definition: engine.h:282
Common::Error saveGameState(int slot, const Common::String &desc, bool isAutosave=false) override
Definition: lure.h:150
void pauseEngineIntern(bool pause) override
bool hasFeature(EngineFeature f) const override
Common::Error run() override
Definition: lure.h:120
Common::Error loadGameState(int slot) override
Definition: lure.h:147
bool canLoadGameStateCurrently(Common::U32String *msg=nullptr) override
Definition: lure.h:154
bool canSaveGameStateCurrently(Common::U32String *msg=nullptr) override
Definition: lure.h:157
void syncSoundSettings() override
@ kReadingFailed
Failed to read a file (permission denied?).
Definition: error.h:63
@ kNoError
No error occurred.
Definition: error.h:48
Language
Definition: language.h:45
Definition: detection.h:36