Refactor: rename and consolidate getSpectator (#6067)

This commit is contained in:
RickyRister 2025-08-15 02:13:53 -03:00 committed by GitHub
parent 03bebbe4c2
commit 46d65f0b7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 13 deletions

View file

@ -415,11 +415,6 @@ void TabGame::adminLockChanged(bool lock)
sayEdit->setVisible(v);
}
bool TabGame::isSpectator()
{
return spectator;
}
void TabGame::actGameInfo()
{
DlgCreateGame dlg(gameInfo, roomGameTypes, this);

View file

@ -235,15 +235,14 @@ public:
return gameInfo.game_id();
}
QString getTabText() const override;
bool getSpectator() const
bool isSpectator() const
{
return spectator;
}
bool getSpectatorsSeeEverything() const
bool isSpectatorsOmniscient() const
{
return gameInfo.spectators_omniscient();
}
bool isSpectator();
Player *getActiveLocalPlayer() const;
AbstractClient *getClientForPlayer(int playerId) const;