Synchronize on network game start, so that everyone has received all avatars and player names before the game starts. Store all computer players in a separate list on the server for name retrieval.

This commit is contained in:
lotodore
2007-10-07 21:23:37 +00:00
parent d16312111f
commit 0d0d8dc810
18 changed files with 452 additions and 64 deletions
+5
View File
@@ -42,6 +42,10 @@ public:
SOCKET GetSocket() const;
void SetReadyFlag();
void ResetReadyFlag();
bool IsReady() const;
const std::string &GetClientAddr() const;
void SetClientAddr(const std::string &addr);
@@ -53,6 +57,7 @@ private:
State m_state;
std::string m_clientAddr;
ReceiveBuffer m_receiveBuffer;
bool m_readyFlag;
mutable boost::mutex m_dataMutex;
};