22#ifndef SWORD1_SWORD1_H
23#define SWORD1_SWORD1_H
25#include "engines/engine.h"
26#include "common/error.h"
27#include "common/keyboard.h"
28#include "common/rect.h"
29#include "common/util.h"
30#include "common/events.h"
31#include "sword1/sworddefs.h"
32#include "sword1/console.h"
55enum ControlPanelMode {
74 uint32 justRestoredGame;
75 uint8 controlPanelMode;
96 bool displayDebugText;
97 bool displayDebugMouse;
98 bool displayDebugGrid;
99 uint32 framesPerSecondCounter;
101 bool useWindowsAudioMode;
118 int32 _vbl60HzUSecElapsed = 0;
120 int _rate = DEFAULT_FRAME_TIME / 10;
121 int _targetFrameTime = DEFAULT_FRAME_TIME;
122 uint32 _mainLoopFrameCount = 0;
125 bool mouseIsActive();
127 static bool isMac() {
return _systemVars.platform == Common::kPlatformMacintosh; }
128 static bool isPsx() {
return _systemVars.platform == Common::kPlatformPSX; }
129 static bool isWindows() {
return _systemVars.platform == Common::kPlatformWindows ; }
132 void updateTopMenu();
133 void updateBottomMenu();
134 void fadePaletteStep();
135 void startFadePaletteDown(
int speed);
136 void startFadePaletteUp(
int speed);
138 bool screenIsFading();
139 bool fadeDirectionIsUp();
140 void setMenuToTargetState();
142 void showDebugInfo();
166 void pollInput(uint32 delay);
173 void showFileErrorMsg(uint8 type,
bool *fileExists);
174 void flagsToBool(
bool *dest, uint8 flags);
178 void installTimerRoutines();
179 void uninstallTimerRoutines();
196 static const uint8 _cdList[TOTAL_SECTIONS];
197 static const CdFile _pcCdFileList[];
198 static const CdFile _macCdFileList[];
199 static const CdFile _psxCdFileList[];
ErrorCode getCode() const
Definition: error.h:112
static String format(MSVC_PRINTF const char *fmt,...) GCC_PRINTF(1
EngineFeature
Definition: engine.h:282
Definition: control.h:120
Definition: objectman.h:33
Common::String getSaveStateName(int slot) const override
Definition: sword1.h:162
void syncSoundSettings() override
bool canLoadGameStateCurrently(Common::U32String *msg=nullptr) override
bool canSaveGameStateCurrently(Common::U32String *msg=nullptr) override
bool hasFeature(EngineFeature f) const override
Common::Error run() override
Definition: sword1.h:148
Common::Error saveGameState(int slot, const Common::String &desc, bool isAutosave=false) override
Common::Error loadGameState(int slot) override
@ kNoError
No error occurred.
Definition: error.h:48
uint32 CustomEventType
Definition: events.h:212
Language
Definition: language.h:45
Definition: animation.h:38
Definition: advancedDetector.h:164
Definition: keyboard.h:294
Definition: atari-screen.h:58
Definition: sworddefs.h:167