delete no longer required "playersTurn"

This commit is contained in:
floty
2010-09-29 20:56:38 +00:00
parent 377f6dde6e
commit 3141743430
5 changed files with 4 additions and 30 deletions
+2 -16
View File
@@ -19,8 +19,8 @@
***************************************************************************/
#include "clientbero.h"
ClientBeRo::ClientBeRo(HandInterface* hi, int /*id*/, unsigned dP, int sB, GameState gS)
: BeRoInterface(), myBeRoID(gS), myHand(hi), highestCardsValue(0), playersTurn(dP), highestSet(0), firstRound(true), smallBlindPosition(0), smallBlind(sB), minimumRaise(0), fullBetRule(false)
ClientBeRo::ClientBeRo(HandInterface* hi, int /*id*/, unsigned /*dP*/, int sB, GameState gS)
: BeRoInterface(), myBeRoID(gS), myHand(hi), highestCardsValue(0), highestSet(0), firstRound(true), smallBlindPosition(0), smallBlind(sB), minimumRaise(0), fullBetRule(false)
{
}
@@ -63,20 +63,6 @@ ClientBeRo::getLastActionPlayer() const
return lastActionPlayer;
}
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::setCurrentPlayersTurnIt(PlayerListIterator theValue)
{
+2 -6
View File
@@ -38,11 +38,8 @@ public:
int getHighestCardsValue() const;
void setHighestCardsValue(int theValue);
void setLastActionPlayer ( unsigned theValue );
unsigned getLastActionPlayer() const;
void setPlayersTurn(int theValue);
int getPlayersTurn() const;
void setLastActionPlayer ( unsigned theValue );
unsigned getLastActionPlayer() const;
void setSmallBlindPositionId(unsigned theValue);
unsigned getSmallBlindPositionId() const;
@@ -97,7 +94,6 @@ private:
int highestCardsValue;
int playersTurn; // TODO -> delete
PlayerListIterator currentPlayersTurnIt; // iterator for runningPlayerList
PlayerListIterator lastPlayersTurnIt; // iterator for runningPlayerList