delete no longer required "playersTurn"
This commit is contained in:
@@ -37,9 +37,6 @@ public:
|
|||||||
|
|
||||||
virtual GameState getMyBeRoID() const =0;
|
virtual GameState getMyBeRoID() const =0;
|
||||||
|
|
||||||
virtual void setPlayersTurn(int) =0;
|
|
||||||
virtual int getPlayersTurn() const =0;
|
|
||||||
|
|
||||||
virtual void setCurrentPlayersTurnId(unsigned) =0;
|
virtual void setCurrentPlayersTurnId(unsigned) =0;
|
||||||
virtual unsigned getCurrentPlayersTurnId() const =0;
|
virtual unsigned getCurrentPlayersTurnId() const =0;
|
||||||
|
|
||||||
|
|||||||
@@ -57,9 +57,6 @@ protected:
|
|||||||
int getDealerPosition() const {return dealerPosition; }
|
int getDealerPosition() const {return dealerPosition; }
|
||||||
void setDealerPosition(int theValue) { dealerPosition = theValue; }
|
void setDealerPosition(int theValue) { dealerPosition = theValue; }
|
||||||
|
|
||||||
void setPlayersTurn(int theValue) { playersTurn = theValue; }
|
|
||||||
int getPlayersTurn() const { return playersTurn;}
|
|
||||||
|
|
||||||
void setCurrentPlayersTurnId(unsigned theValue) { currentPlayersTurnId = theValue; }
|
void setCurrentPlayersTurnId(unsigned theValue) { currentPlayersTurnId = theValue; }
|
||||||
unsigned getCurrentPlayersTurnId() const { return currentPlayersTurnId;}
|
unsigned getCurrentPlayersTurnId() const { return currentPlayersTurnId;}
|
||||||
|
|
||||||
@@ -125,7 +122,6 @@ private:
|
|||||||
bool firstRound;
|
bool firstRound;
|
||||||
bool firstHeadsUpRound;
|
bool firstHeadsUpRound;
|
||||||
|
|
||||||
int playersTurn; // TODO -> delete
|
|
||||||
PlayerListIterator currentPlayersTurnIt; // iterator for runningPlayerList
|
PlayerListIterator currentPlayersTurnIt; // iterator for runningPlayerList
|
||||||
PlayerListIterator lastPlayersTurnIt; // iterator for runningPlayerList
|
PlayerListIterator lastPlayersTurnIt; // iterator for runningPlayerList
|
||||||
|
|
||||||
|
|||||||
@@ -19,8 +19,8 @@
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
#include "clientbero.h"
|
#include "clientbero.h"
|
||||||
|
|
||||||
ClientBeRo::ClientBeRo(HandInterface* hi, int /*id*/, unsigned dP, int sB, GameState gS)
|
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)
|
: 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;
|
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
|
void
|
||||||
ClientBeRo::setCurrentPlayersTurnIt(PlayerListIterator theValue)
|
ClientBeRo::setCurrentPlayersTurnIt(PlayerListIterator theValue)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -41,9 +41,6 @@ public:
|
|||||||
void setLastActionPlayer ( unsigned theValue );
|
void setLastActionPlayer ( unsigned theValue );
|
||||||
unsigned getLastActionPlayer() const;
|
unsigned getLastActionPlayer() const;
|
||||||
|
|
||||||
void setPlayersTurn(int theValue);
|
|
||||||
int getPlayersTurn() const;
|
|
||||||
|
|
||||||
void setSmallBlindPositionId(unsigned theValue);
|
void setSmallBlindPositionId(unsigned theValue);
|
||||||
unsigned getSmallBlindPositionId() const;
|
unsigned getSmallBlindPositionId() const;
|
||||||
|
|
||||||
@@ -97,7 +94,6 @@ private:
|
|||||||
|
|
||||||
int highestCardsValue;
|
int highestCardsValue;
|
||||||
|
|
||||||
int playersTurn; // TODO -> delete
|
|
||||||
PlayerListIterator currentPlayersTurnIt; // iterator for runningPlayerList
|
PlayerListIterator currentPlayersTurnIt; // iterator for runningPlayerList
|
||||||
PlayerListIterator lastPlayersTurnIt; // iterator for runningPlayerList
|
PlayerListIterator lastPlayersTurnIt; // iterator for runningPlayerList
|
||||||
|
|
||||||
|
|||||||
@@ -1907,7 +1907,6 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr<ClientThread> client,
|
|||||||
|
|
||||||
// Next player's turn.
|
// Next player's turn.
|
||||||
curGame->getCurrentHand()->getCurrentBeRo()->setCurrentPlayersTurnId(tmpPlayer->getMyID());
|
curGame->getCurrentHand()->getCurrentBeRo()->setCurrentPlayersTurnId(tmpPlayer->getMyID());
|
||||||
curGame->getCurrentHand()->getCurrentBeRo()->setPlayersTurn(tmpPlayer->getMyID());
|
|
||||||
|
|
||||||
// Mark current player in GUI.
|
// Mark current player in GUI.
|
||||||
int guiStatus = 2;
|
int guiStatus = 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user