mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
client/server version bump; eventConnectionStateChanged
This commit is contained in:
parent
d892d320ea
commit
4b84168bda
24 changed files with 1232 additions and 1076 deletions
|
|
@ -341,6 +341,13 @@ void Server_Game::nextTurn()
|
|||
setActivePlayer(keys[listPos]);
|
||||
}
|
||||
|
||||
void Server_Game::postConnectionStatusUpdate(Server_Player *player, bool connectionStatus)
|
||||
{
|
||||
QMutexLocker locker(&gameMutex);
|
||||
|
||||
sendGameEvent(new Event_ConnectionStateChanged(player->getPlayerId(), connectionStatus));
|
||||
}
|
||||
|
||||
QList<ServerInfo_Player *> Server_Game::getGameState(Server_Player *playerWhosAsking) const
|
||||
{
|
||||
QMutexLocker locker(&gameMutex);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue