mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-04 04:23:55 -07:00
Add getIsLocalGame to TabGame
This commit is contained in:
parent
a7a0ea23ca
commit
2a7fc827f4
2 changed files with 6 additions and 2 deletions
|
|
@ -111,6 +111,7 @@ private:
|
|||
QMap<int, QString> roomGameTypes;
|
||||
int hostId;
|
||||
int localPlayerId;
|
||||
bool isLocalGame;
|
||||
bool spectator;
|
||||
QMap<int, Player *> players;
|
||||
QMap<int, ServerInfo_User> spectators;
|
||||
|
|
@ -238,6 +239,7 @@ public:
|
|||
const QMap<int, Player *> &getPlayers() const { return players; }
|
||||
CardItem *getCard(int playerId, const QString &zoneName, int cardId) const;
|
||||
bool isHost() const { return hostId == localPlayerId; }
|
||||
bool getIsLocalGame() const { return isLocalGame; }
|
||||
int getGameId() const { return gameInfo.game_id(); }
|
||||
QString getTabText() const;
|
||||
bool getSpectator() const { return spectator; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue