|
stmm-games-doc
0.32.0
|

Classes | |
| struct | Init |
Public Member Functions | |
| XmlGameLoader (Init &&oInit) | |
| Constructor. More... | |
| const std::vector< std::string > & | getGameNames () noexcept override |
| The game names supported by this loader. More... | |
| std::vector< std::string > | getGameNames (const AppPreferences &oAppPreferences) noexcept override |
| The game names supported by this loader that satisfy the preferences. More... | |
| const GameInfo & | getGameInfo (const std::string &sGameName) noexcept override |
| The game information by name. More... | |
| const std::string & | getDefaultGameName () const noexcept override |
| The default game name. More... | |
| std::pair< shared_ptr< Game >, bool > | getNewGame (const std::string &sGameName, GameOwner &oGameOwner, const shared_ptr< AppPreferences > &refAppPreferences, const Named &oNamed, const shared_ptr< Highscore > &refHighscore) noexcept override |
| Get a new game. More... | |
Public Member Functions inherited from stmg::GameLoader | |
| virtual | ~GameLoader () noexcept=default |
|
explicit |
Constructor.
| oInit | Inizialization data.. |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
The game information by name.
| sGameName | The name. The game must exist. Cannot be empty. |
Implements stmg::GameLoader.
|
overridevirtualnoexcept |
The game names supported by this loader.
Implements stmg::GameLoader.
|
overridevirtualnoexcept |
The game names supported by this loader that satisfy the preferences.
| oAppPreferences | The preferences. |
Implements stmg::GameLoader.
|
overridevirtualnoexcept |
Get a new game.
If null is returned and error string in GameInfo is empty, it means the game is not compatible with the given preferences.
If parameter refHighscore is not null, it must have been created by the GameInfo::m_refHighscoresDefinition of the game.
| sGameName | The name of the game (which must exist) or empty if loader should choose. |
| oGameOwner | The owner of the game. |
| refAppPreferences | The preferences. Cannot be null. |
| oThemeNamed | The theme named from which game makes a copy. |
| refHighscore | The highscores for the game (and current preferences). Can be null, |
Implements stmg::GameLoader.
1.8.13