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.
static Common::StringArray listSaveNames (const char *target)
 List all the save file names for the specified target.
static int getSaveNameSlot (const char *target, const Common::String &saveName)
 Extract the save slot number from the provided save file name.

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
void addModsToSearchPath () const
void tryAutoSaving ()

Static Private Member Functions

static void checkRecommendedDatafiles ()

Private Attributes

Gfx::FrameLimiter_frameLimiter
Console_console
const ADGameDescription_gameDescription
uint _lastClickTime
uint32 _lastAutoSaveTime

Static Private Attributes

static const uint _doubleClickDelay = 500

Detailed Description

Definition at line 59 of file stark.h.


Constructor & Destructor Documentation

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

Definition at line 61 of file stark.cpp.

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

Definition at line 79 of file stark.cpp.


Member Function Documentation

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

Definition at line 280 of file stark.cpp.

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

Indicates whether a game state can be loaded.

Reimplemented from Engine.

Definition at line 355 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 417 of file stark.cpp.

void Stark::StarkEngine::checkRecommendedDatafiles (  )  [static, private]

Definition at line 295 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 464 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 76 of file stark.h.

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

Extract the save slot number from the provided save file name.

Definition at line 473 of file stark.cpp.

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

Determine whether the engine supports the specified feature.

Reimplemented from Engine.

Definition at line 347 of file stark.cpp.

Common::StringArray Stark::StarkEngine::listSaveNames ( const char *  target  )  [static]

List all the save file names for the specified target.

Definition at line 468 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 359 of file stark.cpp.

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

Definition at line 157 of file stark.cpp.

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

Definition at line 538 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 508 of file stark.cpp.

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

Definition at line 187 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 103 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 423 of file stark.cpp.

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

Definition at line 485 of file stark.cpp.

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

Definition at line 238 of file stark.cpp.


Member Data Documentation

Definition at line 94 of file stark.h.

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

Definition at line 99 of file stark.h.

Definition at line 93 of file stark.h.

Definition at line 96 of file stark.h.

Definition at line 102 of file stark.h.

Definition at line 100 of file stark.h.


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


Generated on Sat Jul 13 2019 05:04:48 for ResidualVM by doxygen 1.7.1
curved edge   curved edge