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.
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, bool isAutosave=false) 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

Static Private Member Functions

static void checkRecommendedDatafiles ()

Private Attributes

Gfx::FrameLimiter_frameLimiter
const ADGameDescription_gameDescription
uint _lastClickTime

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 77 of file stark.cpp.


Member Function Documentation

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

Definition at line 272 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 347 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 414 of file stark.cpp.

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

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

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 486 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 339 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 481 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 351 of file stark.cpp.

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

Definition at line 156 of file stark.cpp.

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

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

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

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

Common::Error Stark::StarkEngine::saveGameState ( int  slot,
const Common::String desc,
bool  isAutosave = false 
) [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
isAutosave Expected to be true if an autosave is being created
Returns:
returns kNoError on success, else an error code.

Reimplemented from Engine.

Definition at line 420 of file stark.cpp.

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

Definition at line 230 of file stark.cpp.


Member Data Documentation

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

Definition at line 96 of file stark.h.

Definition at line 91 of file stark.h.

Definition at line 93 of file stark.h.

Definition at line 97 of file stark.h.


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


Generated on Sat May 23 2020 05:02:56 for ResidualVM by doxygen 1.7.1
curved edge   curved edge