23 #ifndef ZVISION_ZVISION_H 24 #define ZVISION_ZVISION_H 26 #include "common/events.h" 27 #include "common/random.h" 28 #include "common/system.h" 29 #include "engines/engine.h" 30 #include "graphics/pixelformat.h" 31 #include "gui/debugger.h" 32 #include "zvision/detection.h" 33 #include "zvision/core/clock.h" 55 struct ZvisionGameDescription;
66 class SubtitleManager;
99 ROTATION_SCREEN_EDGE_OFFSET = 60,
100 MAX_ROTATION_SPEED = 400,
112 kZVisionActionRestore,
114 kZVisionActionPreferences,
115 kZVisionActionShowFPS,
116 kZVisionActionSkipCutscene,
121 extern const char *mainKeymapId;
122 extern const char *gameKeymapId;
123 extern const char *cutscenesKeymapId;
165 int _frameRenderDelay;
166 int _renderedFrameCount;
168 int16 _mouseVelocity;
169 int16 _keyboardVelocity;
172 bool _videoIsPlaying;
173 bool _breakMainLoop =
false;
175 uint8 _cheatBuffer[KEYBUF_SIZE];
179 void pauseEngineIntern(
bool pause)
override;
181 ZVisionGameId getGameId()
const;
183 uint32 getFeatures()
const;
186 return _scriptManager;
189 return _renderManager;
192 return _cursorManager;
201 return _stringManager;
204 return _textRenderer;
213 return _subtitleManager;
216 return _volumeManager;
224 int16 getKeyboardVelocity()
const {
225 return _keyboardVelocity;
227 int16 getMouseVelocity()
const {
228 return _mouseVelocity;
231 uint8 getZvisionKey(Common::KeyCode scummKeyCode);
241 void initScreen(
bool hiRes =
false);
253 void playVideo(
Video::VideoDecoder &videoDecoder,
Common::Rect destRect =
Common::Rect(0, 0, 0, 0),
bool skippable =
true, uint16 sub = 0,
Common::Rect srcRect =
Common::Rect(0, 0, 0, 0));
256 void setRenderDelay(uint);
258 static void fpsTimerCallback(
void *refCon);
264 bool isWidescreen() {
268 void syncSoundSettings()
override;
273 bool quit(
bool askFirst =
true,
bool streaming =
false);
284 onMouseMove(_system->getEventManager()->getMousePos());
296 void processEvents();
300 void registerDefaultSettings();
302 void cheatCodes(uint8 key);
303 void pushKeyToCheatBuf(uint8 key);
304 bool checkCode(
const char *code);
305 uint8 getBufferedKey(uint8 pos);
Definition: detection.h:52
EngineFeature
Definition: engine.h:260
Definition: script_manager.h:143
Definition: focus_list.h:27
Definition: file_manager.h:31
Definition: string_manager.h:35
Definition: video_decoder.h:53
Definition: algorithm.h:29
Definition: cursor_manager.h:57
Definition: volume_manager.h:41
Definition: save_manager.h:49
Definition: subtitle_manager.h:78
Definition: render_manager.h:48
Definition: avi_frames.h:36
Language
Definition: language.h:45