|
stmm-games-doc
0.32.0
|

Classes | |
| class | PrefPlayer |
| class | PrefTeam |
Public Member Functions | |
| virtual | ~AppPreferences () noexcept=default |
| virtual const shared_ptr< AppConfig > & | getAppConfig () const noexcept=0 |
| The application config. More... | |
| virtual int32_t | getTotTeams () const noexcept=0 |
| The total number of teams. More... | |
| virtual const shared_ptr< PrefTeam > | getTeam (int32_t nTeam) const noexcept=0 |
| Get team by number. More... | |
| virtual const shared_ptr< PrefTeam > | getTeam (const std::string &sTeamName) const noexcept=0 |
| Get team by name. More... | |
| virtual std::vector< std::string > | getTeamNames () const noexcept=0 |
| The number of teams. More... | |
| virtual int32_t | getTotPlayers () const noexcept=0 |
| The number of players. More... | |
| virtual const shared_ptr< PrefPlayer > | getPlayer (int32_t nPlayer) const noexcept=0 |
| Get player by number. More... | |
| virtual const shared_ptr< PrefPlayer > | getPlayer (const std::string &sPlayerName) const noexcept=0 |
| Get player by name. More... | |
| virtual void | getTeammate (int32_t nPlayer, int32_t &nTeam, int32_t &nMate) const noexcept=0 |
| Get team an mate number from player number. More... | |
| virtual int32_t | getTotHumanPlayers () const noexcept=0 |
| The number of human players. More... | |
| virtual int32_t | getTotAIPlayers () const noexcept=0 |
| The number of AI players. More... | |
| virtual int32_t | getTotHumanTeams () const noexcept=0 |
| The number of human teams. More... | |
| virtual int32_t | getTotAITeams () const noexcept=0 |
| The number of AI teams. More... | |
| virtual Variant | getOptionValue (const std::string &sName) const noexcept=0 |
| Returns value of a game option. More... | |
| virtual bool | getPlayerKeyActionFromCapabilityKey (int32_t nCapabilityId, stmi::HARDWARE_KEY eKey, shared_ptr< PrefPlayer > &refPlayer, int32_t &nKeyActionId) const noexcept=0 |
| Given a key generated by a capability, return the player's key action. More... | |
| virtual bool | getPlayerKeyActionFromCapabilityKey (int32_t nCapabilityId, stmi::HARDWARE_KEY eKey, int32_t &nTeam, int32_t &nMate, int32_t &nKeyActionId) const noexcept=0 |
| Given a key generated by a capability, return the player's key action. More... | |
| virtual bool | getCapabilityPlayer (int32_t nCapabilityId, shared_ptr< PrefPlayer > &refPlayer) const noexcept=0 |
| The player to which a capability is assigned. More... | |
| virtual bool | getCapabilityPlayer (int32_t nCapabilityId, int32_t &nTeam, int32_t &nMate) const noexcept=0 |
| The player to which a capability is assigned. More... | |
|
virtualdefaultnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
The player to which a capability is assigned.
| nCapabilityId | The id of the capability. |
| refPlayer | The player the capability is assigned to or unchanged. |
Implemented in stmg::StdPreferences.
|
pure virtualnoexcept |
The player to which a capability is assigned.
| nCapabilityId | The id of the capability. |
| nTeam | The team of the player the capability is assigned to or unchanged. |
| nMate | The mate of the player the capability is assigned to or unchanged. |
Implemented in stmg::StdPreferences.
|
pure virtualnoexcept |
Returns value of a game option.
| sName | The option name. |
Implemented in stmg::StdPreferences.
|
pure virtualnoexcept |
Get player by number.
| nPlayer | The player number. Must be >=0 and < AppPreferences::getTotPlayers(). |
Implemented in stmg::StdPreferences.
|
pure virtualnoexcept |
Get player by name.
Player names are unique.
| sPlayerName | The name of the player. Cannot be empty. |
Implemented in stmg::StdPreferences.
|
pure virtualnoexcept |
Given a key generated by a capability, return the player's key action.
| nCapabilityId | The id of the capability. |
| eKey | The key. Cannot be stmi::HK_NULL. |
| refPlayer | The player associated with the key. Unchanged if not found. |
| nKeyActionId | The key action associated with the key. Unchanged if not found. |
Implemented in stmg::StdPreferences.
|
pure virtualnoexcept |
Given a key generated by a capability, return the player's key action.
| nCapabilityId | The id of the capability. |
| eKey | The key. Cannot be stmi::HK_NULL. |
| nTeam | The player's team associated with the key, unchanged if not found. |
| nMate | The player's mate associated with the key, unchanged if not found. |
| nKeyActionId | The key action associated with the key. Unchanged if not found. |
Implemented in stmg::StdPreferences.
|
pure virtualnoexcept |
Get team by number.
| nTeam | The team number. Must be >=0 and < AppPreferences::getTotTeams(). |
Implemented in stmg::StdPreferences.
|
pure virtualnoexcept |
Get team by name.
Team names are unique.
| sTeamName | The name of the team. Cannot be empty. |
Implemented in stmg::StdPreferences.
|
pure virtualnoexcept |
Get team an mate number from player number.
| nPlayer | The player number. Must be valid. |
| nTeam | (output) The team of the player. |
| nMate | (output) The mate number within the team of the player. |
Implemented in stmg::StdPreferences.
|
pure virtualnoexcept |
The number of teams.
Implemented in stmg::StdPreferences.
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
The number of players.
Implemented in stmg::StdPreferences.
|
pure virtualnoexcept |
The total number of teams.
Implemented in stmg::StdPreferences.
1.8.13