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;
164 int _frameRenderDelay;
165 int _renderedFrameCount;
167 int16 _mouseVelocity;
168 int16 _keyboardVelocity;
171 bool _videoIsPlaying;
172 bool _breakMainLoop =
false;
174 uint8 _cheatBuffer[KEYBUF_SIZE];
178 void pauseEngineIntern(
bool pause)
override;
180 ZVisionGameId getGameId()
const;
182 uint32 getFeatures()
const;
185 return _scriptManager;
188 return _renderManager;
191 return _cursorManager;
200 return _stringManager;
203 return _textRenderer;
212 return _subtitleManager;
215 return _volumeManager;
223 int16 getKeyboardVelocity()
const {
224 return _keyboardVelocity;
226 int16 getMouseVelocity()
const {
227 return _mouseVelocity;
230 uint8 getZvisionKey(Common::KeyCode scummKeyCode);
240 void initScreen(
bool hiRes =
false);
252 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));
255 void setRenderDelay(uint);
257 static void fpsTimerCallback(
void *refCon);
263 bool isWidescreen() {
267 void syncSoundSettings()
override;
272 bool quit(
bool askFirst =
true,
bool streaming =
false);
283 onMouseMove(_system->getEventManager()->getMousePos());
295 void processEvents();
299 void registerDefaultSettings();
301 void cheatCodes(uint8 key);
302 void pushKeyToCheatBuf(uint8 key);
303 bool checkCode(
const char *code);
304 uint8 getBufferedKey(uint8 pos);
Definition: detection.h:52
EngineFeature
Definition: engine.h:258
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: animation.h:37
Language
Definition: language.h:45