|
stmm-games-doc
0.32.0
|

Classes | |
| struct | GameInfo |
Public Member Functions | |
| virtual | ~GameLoader () noexcept=default |
| virtual const std::string & | getDefaultGameName () const noexcept=0 |
| The default game name. More... | |
| virtual const std::vector< std::string > & | getGameNames () noexcept=0 |
| The game names supported by this loader. More... | |
| virtual std::vector< std::string > | getGameNames (const AppPreferences &oAppPreferences) noexcept=0 |
| The game names supported by this loader that satisfy the preferences. More... | |
| virtual const GameInfo & | getGameInfo (const std::string &sGameName) noexcept=0 |
| The game information by name. More... | |
| virtual std::pair< shared_ptr< Game >, bool > | getNewGame (const std::string &sGameName, GameOwner &oGameOwner, const shared_ptr< AppPreferences > &refAppPreferences, const Named &oThemeNamed, const shared_ptr< Highscore > &refHighscore) noexcept=0 |
| Get a new game. More... | |
|
virtualdefaultnoexcept |
|
pure virtualnoexcept |
The default game name.
Implemented in stmg::XmlGameLoader.
|
pure virtualnoexcept |
The game information by name.
| sGameName | The name. The game must exist. Cannot be empty. |
Implemented in stmg::XmlGameLoader.
|
pure virtualnoexcept |
The game names supported by this loader.
Implemented in stmg::XmlGameLoader.
|
pure virtualnoexcept |
The game names supported by this loader that satisfy the preferences.
| oAppPreferences | The preferences. |
Implemented in stmg::XmlGameLoader.
|
pure virtualnoexcept |
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, |
Implemented in stmg::XmlGameLoader.
1.8.13