ScummVM API documentation
Trecision::TrecisionEngine Class Reference
Inheritance diagram for Trecision::TrecisionEngine:
Engine

Public Member Functions

 TrecisionEngine (OSystem *syst, const ADGameDescription *desc)
 
Common::Error run () override
 
TrecisionGameId getGameId () const
 
bool isDemo () const
 
bool isAmiga () const
 
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
 
bool syncGameStream (Common::Serializer &ser)
 
Common::SeekableReadStreamEndianreadEndian (Common::SeekableReadStream *stream, DisposeAfterUse::Flag disposeParentStream=DisposeAfterUse::YES)
 
void read3D (const Common::Path &c)
 
void setInventoryStart (uint8 startIcon, uint8 startLine)
 
void showInventoryName (uint16 obj, bool showhide)
 
void showIconName ()
 
uint8 whatIcon (Common::Point pos)
 
int8 iconPos (uint8 icon)
 
void removeIcon (uint8 icon)
 
void addIcon (uint8 icon)
 
void replaceIcon (uint8 oldIcon, uint8 newIcon)
 
void openInventory ()
 
void closeInventory ()
 
void closeInventoryImmediately ()
 
void useItem ()
 
void examineItem ()
 
void clearUseWith ()
 
void playScript (uint16 id)
 
bool quitPrompt ()
 
void demoOver ()
 
void startCharacterAction (uint16 action, uint16 newRoom, uint8 newPos, uint16 sent)
 
void doMouseTalk (uint16 curObj)
 
void changeRoom (uint16 room, uint16 action=0, byte position=0)
 
uint16 textLength (const Common::String &text, uint16 begin=0, uint16 end=0)
 
Common::KeyCode waitKey ()
 
void waitDelay (uint32 val)
 
void freeKey ()
 
uint32 readTime ()
 
bool checkMask (Common::Point pos)
 
float sinCosAngle (float sinus, float cosinus)
 
float dist2D (float x1, float y1, float x2, float y2)
 
float dist3D (float x1, float y1, float z1, float x2, float y2, float z2)
 
int getRoomObjectIndex (uint16 objectId)
 
int floatComp (float f1, float f2) const
 
void checkSystem ()
 
bool dataSave ()
 
bool dataLoad ()
 
void reEvent ()
 
void setObjectVisible (uint16 objectId, bool visible)
 
void refreshObject (uint16 objectId)
 
bool isObjectVisible (uint16 objectId)
 
void setObjectAnim (uint16 objectId, uint16 animId)
 
void redrawRoom ()
 
void readLoc ()
 
Common::SeekableReadStreamEndiangetLocStream ()
 
void tendIn ()
 
void readExtraObj2C ()
 
void readPositionerSnapshots ()
 
byte * readData (const Common::Path &fileName)
 
- Public Member Functions inherited from Engine
MetaEnginegetMetaEngine () const
 
void setMetaEngine (MetaEngine *metaEngine)
 
PauseToken pauseEngine ()
 
bool isPaused () const
 
void openMainMenuDialog ()
 
uint32 getTotalPlayTime () const
 
void setTotalPlayTime (uint32 time=0)
 
Common::TimerManagergetTimerManager ()
 
Common::EventManagergetEventManager ()
 
Common::SaveFileManagergetSaveFileManager ()
 
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::DebuggergetDebugger () final
 
void setDebugger (GUI::Debugger *debugger)
 
GUI::DebuggergetOrCreateDebugger ()
 
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 ()
 

Static Public Member Functions

static bool isGameArea (Common::Point pos)
 
static bool isInventoryArea (Common::Point pos)
 
static bool isIconArea (Common::Point pos)
 
- Static Public Member Functions inherited from Engine
static void quitGame ()
 
static bool shouldQuit ()
 
static MetaEngineDetectiongetMetaEngineDetection ()
 
static bool warnUserAboutUnsupportedGame (Common::String msg=Common::String())
 
static void errorUnsupportedGame (Common::String extraMsg)
 

Public Attributes

const ADGameDescription_gameDescription
 
Graphics::Surface _thumbnail
 
bool _controlPanelSave = false
 
uint16 _curRoom
 
uint16 _oldRoom
 
SRoom _room [100]
 
Common::List< SSortTable_sortTable
 
uint16 _curObj
 
SObject _obj [1400]
 
SDText _drawText
 
uint16 _curInventory
 
SInvObject _inventoryObj [150]
 
Common::Array< byte > _inventory
 
Common::Array< byte > _cyberInventory
 
uint8 _iconBase
 
uint8 _inventoryStatus
 
uint8 _lightIcon
 
uint8 _inventoryRefreshStartIcon
 
uint8 _inventoryRefreshStartLine
 
int16 _inventoryCounter
 
bool _flagInventoryLocked
 
uint8 _inventorySpeedIndex
 
uint32 _inventoryScrollTime
 
uint16 _lastInv
 
uint16 _lastObj
 
bool _fastWalk
 
uint16 _useWith [2]
 
bool _useWithInv [2]
 
const char * _objName [MAXOBJNAME]
 
const char * _sentence [MAXSENTENCE]
 
const char * _sysText [MAXSYSTEXT]
 
Message_curMessage
 
Message _snake52
 
uint32 _nextRefresh
 
Common::Point _mousePos
 
bool _mouseMoved
 
bool _mouseLeftBtn
 
bool _mouseRightBtn
 
Common::KeyCode _curKey
 
bool _flagScriptActive
 
SScriptFrame _scriptFrame [MAXSCRIPTFRAME]
 
uint16 _scriptFirstFrame [MAXSCRIPT]
 
AnimManager_animMgr
 
GraphicsManager_graphicsMgr
 
DialogManager_dialogMgr
 
LogicManager_logicMgr
 
SoundManager_soundMgr
 
Renderer3D_renderer
 
PathFinding3D_pathFind
 
TextManager_textMgr
 
Scheduler_scheduler
 
AnimTypeManager_animTypeMgr
 
Actor_actor
 
FastFile _dataFile
 
bool _flagDialogActive
 
bool _flagDialogMenuActive
 
bool _flagSkipTalk
 
bool _flagPaintCharacter
 
bool _flagShowCharacter
 
bool _flagSomeoneSpeaks
 
bool _flagCharacterSpeak
 
bool _flagUseWithStarted
 
bool _flagNoPaintScreen
 
bool _flagWaitRegen
 
ObjectGraphics _objectGraphics [MAXOBJINROOM]
 
uint32 _curTime
 
uint32 _characterSpeakTime
 
int _cx
 
int _cy
 
uint8 _textStatus
 
uint32 _pauseStartTime
 
- 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
}
 
- 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
 

Member Function Documentation

◆ run()

Common::Error Trecision::TrecisionEngine::run ( )
overridevirtual

Initialize the engine and start its main loop.

Returns
kNoError on success, otherwise an error code.

Implements Engine.

◆ hasFeature()

bool Trecision::TrecisionEngine::hasFeature ( EngineFeature  f) const
overridevirtual

Determine whether the engine supports the specified feature.

Reimplemented from Engine.

◆ canLoadGameStateCurrently()

bool Trecision::TrecisionEngine::canLoadGameStateCurrently ( Common::U32String msg = nullptr)
inlineoverridevirtual

Indicate whether a game state can be loaded.

Parameters
msgOptional pointer to message explaining why it is disabled

Reimplemented from Engine.

◆ canSaveGameStateCurrently()

bool Trecision::TrecisionEngine::canSaveGameStateCurrently ( Common::U32String msg = nullptr)
inlineoverridevirtual

Indicate whether a game state can be saved.

Parameters
msgOptional pointer to message explaining why it is disabled

Reimplemented from Engine.

◆ loadGameStream()

Common::Error Trecision::TrecisionEngine::loadGameStream ( Common::SeekableReadStream stream)
overridevirtual

Load a game state.

Parameters
streamThe stream to load the save state from.
Returns
kNoError on success, otherwise an error code.

Reimplemented from Engine.

◆ saveGameStream()

Common::Error Trecision::TrecisionEngine::saveGameStream ( Common::WriteStream stream,
bool  isAutosave = false 
)
overridevirtual

Save a game state.

Parameters
streamThe write stream to save the savegame data to.
isAutosaveExpected to be true if an autosave is being created.
Returns
kNoError on success, otherwise an error code.

Reimplemented from Engine.


The documentation for this class was generated from the following file: