Removed client code which is no longer needed now. Networking still somewhat broken.

This commit is contained in:
lotodore
2007-08-07 20:37:34 +00:00
parent c34f683c41
commit 03ecc5b9cb
18 changed files with 177 additions and 895 deletions
+111 -1
View File
@@ -11,7 +11,8 @@
//
#include "clientbero.h"
ClientBeRo::ClientBeRo() : BeRoInterface()
ClientBeRo::ClientBeRo(HandInterface* hi, int id, int qP, int dP, int sB, GameState gS)
: BeRoInterface(), myHand(hi), highestCardsValue(0), myBeRoID(gS), smallBlindPosition(0), smallBlind(sB), highestSet(0), firstRound(1), playersTurn(dP)
{
}
@@ -20,4 +21,113 @@ ClientBeRo::~ClientBeRo()
{
}
GameState
ClientBeRo::getMyBeRoID() const
{
return myBeRoID;
}
int
ClientBeRo::getHighestCardsValue() const
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
return highestCardsValue;
}
void
ClientBeRo::setHighestCardsValue(int theValue)
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
highestCardsValue = theValue;
}
void
ClientBeRo::setPlayersTurn(int theValue)
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
playersTurn = theValue;
}
int
ClientBeRo::getPlayersTurn() const
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
return playersTurn;
}
void
ClientBeRo::setHighestSet(int theValue)
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
highestSet = theValue;
}
int
ClientBeRo::getHighestSet() const
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
return highestSet;
}
void
ClientBeRo::setFirstRound(bool theValue)
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
firstRound = theValue;
}
bool
ClientBeRo::getFirstRound() const
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
return firstRound;
}
void
ClientBeRo::setSmallBlindPosition(int theValue)
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
smallBlindPosition = theValue;
}
int
ClientBeRo::getSmallBlindPosition() const
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
return smallBlindPosition;
}
void
ClientBeRo::setSmallBlind(int theValue)
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
smallBlind = theValue;
}
int
ClientBeRo::getSmallBlind() const
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
return smallBlind;
}
void
ClientBeRo::resetFirstRun()
{
}
void
ClientBeRo::nextPlayer()
{
}
void
ClientBeRo::run()
{
}
void
ClientBeRo::postRiverRun()
{
}