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" 55 enum 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();
156 void syncSoundSettings()
override;
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[];
204 #endif // SWORD1_SWORD1_H Common::Error run() override
Definition: sword1.h:148
EngineFeature
Definition: engine.h:253
static String format(MSVC_PRINTF const char *fmt,...) GCC_PRINTF(1
ErrorCode getCode() const
Definition: error.h:115
Definition: advancedDetector.h:163
No error occurred.
Definition: error.h:48
Definition: atari-screen.h:60
uint32 CustomEventType
Definition: events.h:193
Definition: animation.h:38
Definition: objectman.h:33
Definition: keyboard.h:294
Common::String getSaveStateName(int slot) const override
Definition: sword1.h:162
Definition: control.h:120
Definition: sworddefs.h:167
Language
Definition: language.h:45