Removed dependencies on old preflop/flop/turn/river interface from networking. Compiles, but networking is BROKEN. Also includes first try of computer players for networking, which is broken, too.

This commit is contained in:
lotodore
2007-08-06 21:38:09 +00:00
parent 96419b3588
commit 0aef0d9e42
18 changed files with 233 additions and 121 deletions
+9 -1
View File
@@ -469,7 +469,7 @@ ServerRecvThread::RemoveDisconnectedPlayers()
for (int i = 0; i < m_game->getStartQuantityPlayers(); i++)
{
PlayerInterface *tmpPlayer = m_game->getPlayerArray()[i];
if (!IsPlayerConnected(tmpPlayer->getMyUniqueID()))
if (!IsPlayerConnected(tmpPlayer->getMyUniqueID()) && tmpPlayer->getMyType() == PLAYER_TYPE_HUMAN)
{
tmpPlayer->setMyCash(0);
tmpPlayer->setMyActiveStatus(false);
@@ -479,6 +479,12 @@ ServerRecvThread::RemoveDisconnectedPlayers()
}
}
void
ServerRecvThread::AddComputerPlayer(boost::shared_ptr<PlayerData> player)
{
m_computerPlayers.push_back(player);
}
size_t
ServerRecvThread::GetCurNumberOfPlayers() const
{
@@ -552,6 +558,8 @@ ServerRecvThread::GetPlayerDataList() const
}
++session_i;
}
if (!m_computerPlayers.empty())
playerList.insert(playerList.end(), m_computerPlayers.begin(), m_computerPlayers.end());
return playerList;
}