|
stmm-games-doc
0.32.0
|

Public Member Functions | |
| Team () noexcept | |
| const std::string & | getName () const noexcept override |
| The team's name. More... | |
| bool | isAI () const noexcept override |
| Whether the team is AI. More... | |
| int32_t | getTotMates () const noexcept override |
| The number of mates in the team. More... | |
| const shared_ptr< PrefPlayer > | getMate (int32_t nMate) const noexcept override |
| Get a mate of the team. More... | |
| Variant | getOptionValue (const std::string &sOptionName) const noexcept override |
| Returns value of a team specific option. More... | |
| int32_t | get () const noexcept override |
| The team number within the game. More... | |
| const shared_ptr< Player > & | getMateFull (int32_t nMate) const noexcept |
| Get a teammate. More... | |
| bool | setName (const std::string &sNewName) noexcept |
| Set the team's name. More... | |
| bool | setOptionValue (const std::string &sOptionName, const Variant &oValue) noexcept |
| Set the value of a team's option. More... | |
| int32_t | getTotAIMates () const noexcept |
| Get the number of AI teammates. More... | |
| bool | setTotMates (int32_t nTotMates) noexcept |
| Sets the number of the mates of the team. More... | |
Public Member Functions inherited from stmg::AppPreferences::PrefTeam | |
| virtual | ~PrefTeam () noexcept=default |
|
inlinenoexcept |
|
inlineoverridevirtualnoexcept |
The team number within the game.
Implements stmg::AppPreferences::PrefTeam.
|
overridevirtualnoexcept |
Get a mate of the team.
| nMate | The mate number. Must be >=0 and < getTotMates(). |
Implements stmg::AppPreferences::PrefTeam.
|
noexcept |
Get a teammate.
| nMate | The index. Must be >= 0 and smaller than getTotMates(). |
|
inlineoverridevirtualnoexcept |
The team's name.
The name is unique among all teams.
Implements stmg::AppPreferences::PrefTeam.
|
overridevirtualnoexcept |
Returns value of a team specific option.
| sOptionName | The option name. |
Implements stmg::AppPreferences::PrefTeam.
|
noexcept |
Get the number of AI teammates.
|
inlineoverridevirtualnoexcept |
The number of mates in the team.
Implements stmg::AppPreferences::PrefTeam.
|
inlineoverridevirtualnoexcept |
Whether the team is AI.
The team is AI if all its mates are AI.
Implements stmg::AppPreferences::PrefTeam.
|
noexcept |
Set the team's name.
If another existing team already has the name the operation fails and false is returned.
| sNewName | The new name. Cannot be empty. |
|
noexcept |
Set the value of a team's option.
| sOptionName | The name of the option. Must exist and not be read only. |
| oValue | The new value. |
|
noexcept |
Sets the number of the mates of the team.
Depending on the current number of mates, players are deleted or added accordingly.
| nTotMates | The new number of mates. Must be >= 1. |
1.8.13