ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <stark.h>

Inheritance diagram for Stark::StarkEngine:
Collaboration diagram for Stark::StarkEngine:

List of all members.

Public Member Functions

 StarkEngine (OSystem *syst, const ADGameDescription *gameDesc)
 ~StarkEngine () override

Static Public Member Functions

static Common::String formatSaveName (const char *target, int slot)
 Build a save file name for the specified target and slot.

Protected Member Functions

Common::Error run () override
 Init the engine and start its main loop.
GUI::DebuggergetDebugger () override
 Return the engine's debugger instance, if any.
bool hasFeature (EngineFeature f) const override
 Determine whether the engine supports the specified feature.
bool canLoadGameStateCurrently () override
 Indicates whether a game state can be loaded.
bool canSaveGameStateCurrently () override
 Indicates whether a game state can be saved.
Common::Error loadGameState (int slot) override
 Load a game state.
Common::Error saveGameState (int slot, const Common::String &desc) override
 Save a game state.
void pauseEngineIntern (bool pause) override
 Actual implementation of pauseEngine by subclasses.

Private Member Functions

void mainLoop ()
void updateDisplayScene ()
void processEvents ()
void onScreenChanged () const

Private Attributes

Gfx::FrameLimiter_frameLimiter
Console_console
const ADGameDescription_gameDescription
uint _lastClickTime

Static Private Attributes

static const uint _doubleClickDelay = 500

Detailed Description

Definition at line 58 of file stark.h.


Constructor & Destructor Documentation

Stark::StarkEngine::StarkEngine ( OSystem syst,
const ADGameDescription gameDesc 
)

Definition at line 58 of file stark.cpp.

Stark::StarkEngine::~StarkEngine (  )  [override]

Definition at line 72 of file stark.cpp.


Member Function Documentation

bool Stark::StarkEngine::canLoadGameStateCurrently (  )  [override, protected, virtual]

Indicates whether a game state can be loaded.

Reimplemented from Engine.

Definition at line 270 of file stark.cpp.

bool Stark::StarkEngine::canSaveGameStateCurrently (  )  [override, protected, virtual]

Indicates whether a game state can be saved.

Reimplemented from Engine.

Definition at line 332 of file stark.cpp.

Common::String Stark::StarkEngine::formatSaveName ( const char *  target,
int  slot 
) [static]

Build a save file name for the specified target and slot.

Definition at line 379 of file stark.cpp.

GUI::Debugger* Stark::StarkEngine::getDebugger (  )  [inline, override, protected, virtual]

Return the engine's debugger instance, if any.

Used by error() to invoke the debugger when a severe error is reported.

Reimplemented from Engine.

Definition at line 69 of file stark.h.

bool Stark::StarkEngine::hasFeature ( EngineFeature  f  )  const [override, protected, virtual]

Determine whether the engine supports the specified feature.

Reimplemented from Engine.

Definition at line 262 of file stark.cpp.

Common::Error Stark::StarkEngine::loadGameState ( int  slot  )  [override, protected, virtual]

Load a game state.

Parameters:
slot the slot from which a savestate should be loaded
Returns:
returns kNoError on success, else an error code.

Reimplemented from Engine.

Definition at line 274 of file stark.cpp.

void Stark::StarkEngine::mainLoop (  )  [private]

Definition at line 147 of file stark.cpp.

void Stark::StarkEngine::onScreenChanged (  )  const [private]

Definition at line 413 of file stark.cpp.

void Stark::StarkEngine::pauseEngineIntern ( bool  pause  )  [override, protected, virtual]

Actual implementation of pauseEngine by subclasses.

See there for details.

Reimplemented from Engine.

Definition at line 383 of file stark.cpp.

void Stark::StarkEngine::processEvents (  )  [private]

Definition at line 173 of file stark.cpp.

Common::Error Stark::StarkEngine::run (  )  [override, protected, virtual]

Init the engine and start its main loop.

Returns:
returns kNoError on success, else an error code.

Implements Engine.

Definition at line 96 of file stark.cpp.

Common::Error Stark::StarkEngine::saveGameState ( int  slot,
const Common::String desc 
) [override, protected, virtual]

Save a game state.

Parameters:
slot the slot into which the savestate should be stored
desc a description for the savestate, entered by the user
Returns:
returns kNoError on success, else an error code.

Reimplemented from Engine.

Definition at line 338 of file stark.cpp.

void Stark::StarkEngine::updateDisplayScene (  )  [private]

Definition at line 224 of file stark.cpp.


Member Data Documentation

Definition at line 84 of file stark.h.

const uint Stark::StarkEngine::_doubleClickDelay = 500 [static, private]

Definition at line 89 of file stark.h.

Definition at line 83 of file stark.h.

Definition at line 86 of file stark.h.

Definition at line 90 of file stark.h.


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


Generated on Sat Jan 19 2019 05:07:31 for ResidualVM by doxygen 1.7.1
curved edge   curved edge