The console server can now be fully used for a single game. The first player to join the game is admin, he can start the game and kick players.
However, if the admin player leaves, a new game can only be started if all players have left before (this is a bug, admin status should be passed to another player).
This commit is contained in:
@@ -37,7 +37,9 @@ public slots:
|
||||
|
||||
void startGame();
|
||||
void cancel();
|
||||
void addConnectedPlayer(QString playerName);
|
||||
void refresh(int actionID);
|
||||
void joinedNetworkGame(QString playerName, int rights);
|
||||
void addConnectedPlayer(QString playerName, int rights);
|
||||
void removePlayer(QString playerName);
|
||||
void playerSelected(QTreeWidgetItem*, int);
|
||||
void kickPlayer();
|
||||
@@ -54,6 +56,7 @@ public slots:
|
||||
private:
|
||||
|
||||
int maxPlayerNumber;
|
||||
bool isAdmin;
|
||||
ConfigFile *myConfig;
|
||||
Session *mySession;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user