#include <player_manager.h>
◆ PlayerManager()
| PlayerManager::PlayerManager |
( |
AbstractGame * | _game, |
|
|
int | _localPlayerId, |
|
|
bool | _localPlayerIsJudge, |
|
|
bool | localPlayerIsSpectator ) |
◆ activeLocalPlayerConceded
| void PlayerManager::activeLocalPlayerConceded |
( |
| ) |
|
|
signal |
◆ activeLocalPlayerUnconceded
| void PlayerManager::activeLocalPlayerUnconceded |
( |
| ) |
|
|
signal |
◆ addPlayer()
| Player * PlayerManager::addPlayer |
( |
int | playerId, |
|
|
const ServerInfo_User & | info ) |
◆ addSpectator()
| void PlayerManager::addSpectator |
( |
int | spectatorId, |
|
|
const ServerInfo_PlayerProperties & | prop ) |
|
inline |
◆ getActiveLocalPlayer()
| Player * PlayerManager::getActiveLocalPlayer |
( |
int | activePlayer | ) |
const |
|
nodiscard |
◆ getGame()
◆ getLocalPlayerId()
| int PlayerManager::getLocalPlayerId |
( |
| ) |
const |
|
inlinenodiscard |
◆ getPlayer()
| Player * PlayerManager::getPlayer |
( |
int | playerId | ) |
const |
|
nodiscard |
◆ getPlayerCount()
| int PlayerManager::getPlayerCount |
( |
| ) |
const |
|
inlinenodiscard |
◆ getPlayers()
| const QMap< int, Player * > & PlayerManager::getPlayers |
( |
| ) |
const |
|
inlinenodiscard |
◆ getSpectator()
| ServerInfo_User PlayerManager::getSpectator |
( |
int | playerId | ) |
const |
|
inlinenodiscard |
◆ getSpectatorName()
| QString PlayerManager::getSpectatorName |
( |
int | spectatorId | ) |
const |
|
inlinenodiscard |
◆ getSpectators()
| const QMap< int, ServerInfo_User > & PlayerManager::getSpectators |
( |
| ) |
const |
|
inlinenodiscard |
◆ isJudge()
| bool PlayerManager::isJudge |
( |
| ) |
const |
|
inlinenodiscard |
◆ isLocalPlayer() [1/2]
| bool PlayerManager::isLocalPlayer |
( |
int | playerId | ) |
|
◆ isLocalPlayer() [2/2]
| bool PlayerManager::isLocalPlayer |
( |
int | playerId | ) |
const |
|
inlinenodiscard |
◆ isMainPlayerConceded()
| bool PlayerManager::isMainPlayerConceded |
( |
| ) |
const |
|
nodiscard |
◆ isSpectator()
| bool PlayerManager::isSpectator |
( |
| ) |
const |
|
inlinenodiscard |
◆ onPlayerConceded()
| void PlayerManager::onPlayerConceded |
( |
int | playerId, |
|
|
bool | conceded ) |
◆ playerAdded
| void PlayerManager::playerAdded |
( |
Player * | player | ) |
|
|
signal |
◆ playerConceded
| void PlayerManager::playerConceded |
( |
int | playerId | ) |
|
|
signal |
◆ playerCountChanged
| void PlayerManager::playerCountChanged |
( |
| ) |
|
|
signal |
◆ playerRemoved
| void PlayerManager::playerRemoved |
( |
Player * | player | ) |
|
|
signal |
◆ playerUnconceded
| void PlayerManager::playerUnconceded |
( |
int | playerId | ) |
|
|
signal |
◆ removePlayer()
| void PlayerManager::removePlayer |
( |
int | playerId | ) |
|
◆ removeSpectator()
| void PlayerManager::removeSpectator |
( |
int | spectatorId | ) |
|
|
inline |
◆ spectatorAdded
| void PlayerManager::spectatorAdded |
( |
ServerInfo_PlayerProperties | spectator | ) |
|
|
signal |
◆ spectatorRemoved
| void PlayerManager::spectatorRemoved |
( |
int | spectatorId, |
|
|
ServerInfo_User | spectator ) |
|
signal |
◆ game
◆ localPlayerId
| int PlayerManager::localPlayerId |
◆ localPlayerIsJudge
| bool PlayerManager::localPlayerIsJudge |
◆ localPlayerIsSpectator
| bool PlayerManager::localPlayerIsSpectator |
◆ players
| QMap<int, Player *> PlayerManager::players |
◆ spectators
| QMap<int, ServerInfo_User> PlayerManager::spectators |
The documentation for this class was generated from the following files: