Public Member Functions | |
TwinEEngine (OSystem *system, Common::Language language, uint32 flagsTwineGameType, Common::Platform platform, TwineGameType gameType) | |
Common::Error | run () override |
bool | hasFeature (EngineFeature f) const override |
bool | canLoadGameStateCurrently (Common::U32String *msg=nullptr) override |
bool | canSaveGameStateCurrently (Common::U32String *msg=nullptr) override |
Common::Error | loadGameStream (Common::SeekableReadStream *stream) override |
Common::Error | saveGameStream (Common::WriteStream *stream, bool isAutosave=false) override |
int32 | toSeconds (int x) const |
void | wipeSaveSlot (int slot) |
SaveStateList | getSaveSlots () const |
void | autoSave () |
void | pushMouseCursorVisible () |
void | popMouseCursorVisible () |
bool | isCDROM () const |
bool | isLBA1 () const |
bool | isLBA2 () const |
bool | isLBASlideShow () const |
bool | isMod () const |
bool | isDotEmuEnhanced () const |
bool | isLba1Classic () const |
bool | isDemo () const |
bool | isAndroid () const |
const char * | getGameId () const |
Common::Language | getGameLang () const |
int | numHoloPos () const |
int | getMaxLife () const |
bool | unlockAchievement (const Common::String &id) |
int | width () const |
int | height () const |
int | originalWidth () const |
int | originalHeight () const |
Common::Rect | rect () const |
Common::Rect | centerOnScreen (int32 w, int32 h) const |
Common::Rect | centerOnScreenX (int32 w, int32 y, int32 h) const |
void | extInitMcga () |
void | extInitSvga () |
void | testRestoreModeSVGA (bool redraw) |
void | queueMovie (const char *filename) |
void | clearScreenMinMax (Common::Rect &rect) |
void | adjustScreenMax (Common::Rect &rect, int16 x, int16 y) |
int | getRandomNumber (uint max=0x7FFF) |
void | blitWorkToFront (const Common::Rect &rect) |
void | copyBlock (const Common::Rect &rect) |
void | restoreFrontBuffer () |
void | saveFrontBuffer () |
void | saveTimer (bool pause) |
void | restoreTimer () |
bool | mainLoop () |
bool | delaySkip (uint32 time) |
void | setPalette (const Graphics::Palette &palette, uint startColor=0u) |
void | setPalette (uint startColor, uint numColors, const byte *palette) |
Set the Palette object. More... | |
void | copyBlockPhys (int32 left, int32 top, int32 right, int32 bottom) |
void | copyBlockPhys (const Common::Rect &rect) |
void | readKeys () |
void | drawText (int32 x, int32 y, const Common::String &text, bool center=false, bool bigFont=false, int width=100) |
Public Member Functions inherited from Engine | |
MetaEngine * | getMetaEngine () const |
void | setMetaEngine (MetaEngine *metaEngine) |
PauseToken | pauseEngine () |
bool | isPaused () const |
void | openMainMenuDialog () |
uint32 | getTotalPlayTime () const |
void | setTotalPlayTime (uint32 time=0) |
Common::TimerManager * | getTimerManager () |
Common::EventManager * | getEventManager () |
Common::SaveFileManager * | getSaveFileManager () |
bool | existExtractedCDAudioFiles (uint track=1) |
bool | isDataAndCDAudioReadFromSameCD () |
void | warnMissingExtractedCDAudio () |
void | handleAutoSave () |
void | saveAutosaveIfEnabled () |
virtual bool | canSaveAutosaveCurrently () |
virtual int | getAutosaveSlot () const |
Engine (OSystem *syst) | |
virtual | ~Engine () |
virtual void | initializePath (const Common::FSNode &gamePath) |
virtual void | errorString (const char *buf_input, char *buf_output, int buf_output_size) |
virtual GUI::Debugger * | getDebugger () final |
void | setDebugger (GUI::Debugger *debugger) |
GUI::Debugger * | getOrCreateDebugger () |
bool | enhancementEnabled (int32 cls) |
virtual void | syncSoundSettings () |
virtual void | applyGameSettings () |
virtual void | flipMute () |
virtual Common::String | getSaveStateName (int slot) const |
virtual Common::Error | loadGameState (int slot) |
void | setGameToLoadSlot (int slot) |
virtual Common::Error | saveGameState (int slot, const Common::String &desc, bool isAutosave=false) |
bool | saveGameDialog () |
bool | loadGameDialog () |
Public Attributes | |
Actor * | _actor |
Animations * | _animations |
Collision * | _collision |
Extra * | _extra |
GameState * | _gameState |
Grid * | _grid |
Movements * | _movements |
Interface * | _interface |
Menu * | _menu |
Movies * | _movie |
MenuOptions * | _menuOptions |
Music * | _music |
Redraw * | _redraw |
Renderer * | _renderer |
Resources * | _resources |
Scene * | _scene |
Screens * | _screens |
Holomap * | _holomap |
Sound * | _sound |
Text * | _text |
Input * | _input |
Buggy * | _buggy |
Dart * | _dart |
Rain * | _rain |
Wagon * | _wagon |
DebugState * | _debugState |
ScriptLife * | _scriptLife |
ScriptMove * | _scriptMove |
ConfigFile | _cfgfile |
int32 | _frameCounter = 0 |
SceneLoopState | _sceneLoopState = SceneLoopState::ReturnToMenu |
int32 | timerRef = 0 |
int32 | _loopInventoryItem = 0 |
int32 | _stepFalling = 0 |
uint32 | _gameFlags = 0u |
Common::Platform | _platform |
bool | _flagRain = false |
bool | _cameraZone = false |
Graphics::ManagedSurface | _imageBuffer |
Graphics::ManagedSurface | _workVideoBuffer |
TwineScreen | _frontVideoBuffer |
Public Attributes inherited from Engine | |
OSystem * | _system |
Audio::Mixer * | _mixer |
Additional Inherited Members | |
Public Types inherited from Engine | |
enum | EngineFeature { kSupportsSubtitleOptions, kSupportsReturnToLauncher, kSupportsLoadingDuringRuntime, kSupportsSavingDuringRuntime, kSupportsChangingOptionsDuringRuntime, kSupportsArbitraryResolutions, kSupportsHelp, kSupportsQuitDialogOverride } |
Static Public Member Functions inherited from Engine | |
static void | quitGame () |
static bool | shouldQuit () |
static bool | warnUserAboutUnsupportedGame (Common::String msg=Common::String()) |
static void | errorUnsupportedGame (Common::String extraMsg) |
Protected Member Functions inherited from Engine | |
virtual int | runDialog (GUI::Dialog &dialog) |
void | defaultSyncSoundSettings () |
virtual void | pauseEngineIntern (bool pause) |
Protected Attributes inherited from Engine | |
Common::TimerManager * | _timer |
Common::EventManager * | _eventMan |
Common::SaveFileManager * | _saveFileMan |
GUI::Dialog * | _mainMenuDialog |
const Common::String | _targetName |
int32 | _activeEnhancements = kEnhGameBreakingBugFixes |
|
overridevirtual |
Initialize the engine and start its main loop.
Implements Engine.
|
overridevirtual |
Determine whether the engine supports the specified feature.
Reimplemented from Engine.
|
inlineoverridevirtual |
Indicate whether a game state can be loaded.
msg | Optional pointer to message explaining why it is disabled |
Reimplemented from Engine.
|
overridevirtual |
Indicate whether a game state can be saved.
msg | Optional pointer to message explaining why it is disabled |
Reimplemented from Engine.
|
overridevirtual |
Load a game state.
stream | The stream to load the save state from. |
Reimplemented from Engine.
|
overridevirtual |
Save a game state.
stream | The write stream to save the savegame data to. |
isAutosave | Expected to be true if an autosave is being created. |
Reimplemented from Engine.
int TwinE::TwinEEngine::getRandomNumber | ( | uint | max = 0x7FFF | ) |
bool TwinE::TwinEEngine::mainLoop | ( | ) |
Game engine main loop
bool TwinE::TwinEEngine::delaySkip | ( | uint32 | time | ) |
Deplay certain seconds till proceed - Can also Skip this delay
time | time in milliseconds to delay |
true
if the delay was aborted, false
otherwise void TwinE::TwinEEngine::setPalette | ( | const Graphics::Palette & | palette, |
uint | startColor = 0u |
||
) |
Set a new palette in the SDL screen buffer
palette | palette to set in RGBA |
void TwinE::TwinEEngine::setPalette | ( | uint | startColor, |
uint | numColors, | ||
const byte * | palette | ||
) |
Set the Palette object.
startColor | the first palette entry to be updated |
numColors | the number of palette entries to be updated |
palette | palette to set in RGB |
void TwinE::TwinEEngine::copyBlockPhys | ( | int32 | left, |
int32 | top, | ||
int32 | right, | ||
int32 | bottom | ||
) |
Blit surface in the screen in a determinate area
left | left position to start copy |
top | top position to start copy |
right | right position to start copy |
bottom | bottom position to start copy |
void TwinE::TwinEEngine::readKeys | ( | ) |
Handle keyboard pressed keys
void TwinE::TwinEEngine::drawText | ( | int32 | x, |
int32 | y, | ||
const Common::String & | text, | ||
bool | center = false , |
||
bool | bigFont = false , |
||
int | width = 100 |
||
) |
Display text in screen
x | X coordinate in screen |
y | Y coordinate in screen |
text | text to display |
center | if the text should be centered accoding with the giving positions |
ConfigFile TwinE::TwinEEngine::_cfgfile |
Configuration file structure Contains all the data used in the engine to configurate the game in particularly ways.
bool TwinE::TwinEEngine::_cameraZone = false |
Disable screen recenter
Graphics::ManagedSurface TwinE::TwinEEngine::_workVideoBuffer |
Work video buffer
TwineScreen TwinE::TwinEEngine::_frontVideoBuffer |
Main game video buffer