|
stmm-games-doc
0.32.0
|
Read-only interface to application configuration data. More...

Public Member Functions | |
| virtual | ~AppConfig () noexcept=default |
| virtual const std::string & | getAppName () const noexcept=0 |
| The name of the application. More... | |
| virtual const std::string & | getAppVersion () const noexcept=0 |
| The version of the application. More... | |
| virtual const AppConstraints & | getAppConstraints () const noexcept=0 |
| The application constraints. More... | |
| virtual shared_ptr< stmi::DeviceManager > | getDeviceManager () const noexcept=0 |
| The device manager that generates the input events. More... | |
| virtual int32_t | getTotKeyActions () const noexcept=0 |
| The total number of key actions. More... | |
| virtual int32_t | getKeyActionId (const std::string &sKeyActionName) const noexcept=0 |
| Get to the key action id from its name. More... | |
| virtual const NamedObjIndex< shared_ptr< Option > > & | getOptions (OwnerType eOwner) const noexcept=0 |
| Get the options for an owner type. More... | |
| virtual const shared_ptr< Option > & | getOption (OwnerType eOwner, const std::string &sName) const noexcept=0 |
| Get an option by name. More... | |
| virtual bool | isEventAssignedToActivePlayer () const noexcept=0 |
| Tells whether events should be assigned to the active player. More... | |
| virtual bool | soundEnabled () const noexcept=0 |
| Whether the game plays sounds. More... | |
| virtual bool | canPlayPerPlayerSounds () const noexcept=0 |
| Whether allows playback devices to be assigned to players. More... | |
| virtual bool | isTestMode () const noexcept=0 |
| Whether in testing mode. More... | |
Read-only interface to application configuration data.
|
virtualdefaultnoexcept |
|
pure virtualnoexcept |
Whether allows playback devices to be assigned to players.
If true the game allows playback devices such as head phones to be assigned to each player for personalized output. Ignored if playsSounds() returns false.
Implemented in stmg::StdConfig.
|
pure virtualnoexcept |
|
pure virtualnoexcept |
The name of the application.
Implemented in stmg::StdConfig.
|
pure virtualnoexcept |
The version of the application.
Implemented in stmg::StdConfig.
|
pure virtualnoexcept |
The device manager that generates the input events.
Implemented in stmg::StdConfig.
|
pure virtualnoexcept |
Get to the key action id from its name.
| sKeyActionName | The key action name. |
Implemented in stmg::StdConfig.
|
pure virtualnoexcept |
Get an option by name.
| eOwner | The owner type. |
| sName | The name of the option. Cannot be empty. |
Implemented in stmg::StdConfig.
|
pure virtualnoexcept |
Get the options for an owner type.
| eOwner | The owner type. |
Implemented in stmg::StdConfig.
|
pure virtualnoexcept |
The total number of key actions.
A valid key action id is a number from 0 to getTotKeyActions()-1.
Implemented in stmg::StdConfig.
|
pure virtualnoexcept |
Tells whether events should be assigned to the active player.
If this function returns true, the game, when it receives an event from a device's capability that wasn't assigned to a player in the preferences, will try to assign it to the unique active human player. If more than one human player is active at the moment the event is received, it is dropped.
This is useful in turn based games where the two players use the same device (ex. the mouse). Be aware that it can cause inconsistencies. Example: if between the press and the release of a joystick button the active player is changed the release event is sent to a different player.
Implemented in stmg::StdConfig.
|
pure virtualnoexcept |
Whether in testing mode.
This flag can be used to output additional information.
Implemented in stmg::StdConfig.
|
pure virtualnoexcept |
Whether the game plays sounds.
If this function returns false sounds are not played and the view preferences should not show widgets to choose the volume.
Implemented in stmg::StdConfig.
1.8.13