More fixes. Using player name as base for game name now. Removing games which have no players left. Check collision of all player names on connect (kind of slow, but name needs to be unique).

This commit is contained in:
lotodore
2007-08-21 17:27:13 +00:00
parent 3e4b134faa
commit 3a2f3255af
10 changed files with 120 additions and 15 deletions
+3 -2
View File
@@ -60,6 +60,9 @@ public:
bool CheckPassword(const std::string &password) const;
const GameData &GetGameData() const;
const SessionManager &GetSessionManager() const;
SessionManager &GetSessionManager();
protected:
typedef std::deque<SessionWrapper> SessionQueue;
@@ -82,8 +85,6 @@ protected:
size_t GetCurNumberOfPlayers() const;
void AssignPlayerNumbers();
SessionManager &GetSessionManager();
const SessionManager &GetSessionManager() const;
ServerLobbyThread &GetLobbyThread();
ServerGameState &GetState();