More work on vote kick. Some network packets are exchanged, but still not functional.

This commit is contained in:
lotodore committed 2008-11-16 22:57:11 +00:00
1 parent f501ef1a20
commit 1cfe551f19
10 files changed
+87 -6

No files matched your search

+11
View File
@@ -253,6 +253,17 @@ ClientThread::SendResetTimeout()
m_outPacketList.push_back(reset);
}
void
ClientThread::SendAskKickPlayer(unsigned playerId)
{
boost::shared_ptr<NetPacket> ask(new NetPacketAskKickPlayer);
NetPacketAskKickPlayer::Data askData;
askData.playerId = playerId;
static_cast<NetPacketAskKickPlayer *>(ask.get())->SetData(askData);
boost::mutex::scoped_lock lock(m_outPacketListMutex);
m_outPacketList.push_back(ask);
}
GameInfo
ClientThread::GetGameInfo(unsigned gameId) const
{