More steps towards supporting multiple games per server. Player rights still broken, so starting the game is not possible. Games are not yet terminated after all players have left.

This commit is contained in:
lotodore
2007-08-21 12:34:33 +00:00
parent 697f063eb1
commit 839a4f7112
21 changed files with 237 additions and 31 deletions
+14
View File
@@ -157,6 +157,20 @@ void Session::terminateNetworkClient()
myNetClient = 0;
}
void Session::clientCreateGame(const GameData &gameData, const string &name, const string &password)
{
if (!myNetClient)
return; // only act if client is running.
myNetClient->SendCreateGame(gameData, name, password);
}
void Session::clientJoinGame(const std::string &name, const std::string &password)
{
if (!myNetClient)
return; // only act if client is running.
myNetClient->SendJoinGame(name, password);
}
void Session::startNetworkServer(const GameData &gameData)
{
if (myNetServer)