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

This commit is contained in:
lotodore
2008-11-16 22:57:11 +00:00
parent f501ef1a20
commit 1cfe551f19
10 changed files with 87 additions and 6 deletions
+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
{