ScummVM API documentation
ChainedGamesManager Class Reference

#include <engine.h>

Inheritance diagram for ChainedGamesManager:
Common::Singleton< ChainedGamesManager > Common::NonCopyable

Public Member Functions

void clear ()
 
void push (const Common::String target, const int slot=-1)
 
bool pop (Common::String &target, int &slot)
 
bool empty ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Common::Singleton< ChainedGamesManager >
static bool hasInstance ()
 
static ChainedGamesManagerinstance ()
 
static void destroy ()
 
- Protected Types inherited from Common::Singleton< ChainedGamesManager >
typedef ChainedGamesManager SingletonBaseType
 
- Static Protected Attributes inherited from Common::Singleton< ChainedGamesManager >
static ChainedGamesManager_singleton
 

Detailed Description

Singleton class which manages chained games.

A chained game is one that starts automatically, optionally loading a saved game, instead of returning to the launcher.

Member Function Documentation

◆ clear()

void ChainedGamesManager::clear ( )

Clear the chained games manager of any games.

◆ push()

void ChainedGamesManager::push ( const Common::String  target,
const int  slot = -1 
)

Load a game into a slot in the chained games manager.

◆ pop()

bool ChainedGamesManager::pop ( Common::String target,
int &  slot 
)

Pop the last game loaded into the chained games manager.

◆ empty()

bool ChainedGamesManager::empty ( )
inline

Returns true if the chained games manager has no elements in the queue.


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