The checkbox "fill up with computer players" is now working (protocol has been changed to implement this). Lobby dialog is now also used after joining the game. Leaving game not possible yet.

This commit is contained in:
lotodore
2007-09-05 19:14:34 +00:00
parent d789162a2a
commit 9f6bf5206e
14 changed files with 288 additions and 147 deletions
+3 -3
View File
@@ -50,10 +50,10 @@ public:
void startNetworkClientForLocalServer(const GameData &gameData);
void terminateNetworkClient();
void clientCreateGame(const GameData &gameData, const std::string &name, const std::string &password);
void clientJoinGame(const std::string &name, const std::string &password);
void clientJoinGame(unsigned gameId, const std::string &password);
void startNetworkServer();
void sendStartEvent();
void sendStartEvent(bool fillUpWithCpuPlayers);
void terminateNetworkServer();
void waitForNetworkServer(unsigned timeoutMsec);
@@ -63,7 +63,7 @@ public:
int getCurrentGameID() const { return currentGameID; }
void sendChatMessage(const std::string &message);
void kickPlayer(const std::string &playerName);
void kickPlayer(unsigned playerId);
bool isNetworkClientRunning() const; // TODO hack
bool isNetworkServerRunning() const; // TODO hack