Networking should mostly be working now. Some small issues concerning the display of pot/sets, and some delays are still needed.
This commit is contained in:
@@ -24,7 +24,7 @@ class FlopInterface{
|
||||
public:
|
||||
|
||||
|
||||
virtual ~FlopInterface();
|
||||
virtual ~FlopInterface();
|
||||
|
||||
virtual void setPlayersTurn(const int& theValue) =0;
|
||||
virtual int getPlayersTurn() const =0;
|
||||
@@ -41,6 +41,8 @@ public:
|
||||
virtual void setSmallBlind(const int& theValue) =0;
|
||||
virtual int getSmallBlind() const =0;
|
||||
|
||||
virtual void resetFirstRun() =0;
|
||||
|
||||
virtual void flopRun() =0;
|
||||
virtual void nextPlayer2() =0;
|
||||
|
||||
|
||||
@@ -46,6 +46,8 @@ public:
|
||||
void setSmallBlind(const int& theValue) { smallBlind = theValue; }
|
||||
int getSmallBlind() const { return smallBlind; }
|
||||
|
||||
void resetFirstRun() { firstFlopRun = false; }
|
||||
|
||||
void flopRun();
|
||||
void nextPlayer2();
|
||||
|
||||
|
||||
@@ -347,7 +347,8 @@ void LocalHand::switchRounds() {
|
||||
myGui->refreshPot();
|
||||
myGui->refreshSet();
|
||||
myGui->flipHolecardsAllIn();
|
||||
actualRound++;
|
||||
if (actualRound < 4) // do not increment past 4
|
||||
actualRound++;
|
||||
}
|
||||
|
||||
//unhighlight actual players groupbox
|
||||
|
||||
@@ -48,6 +48,8 @@ public:
|
||||
void setHighestCardsValue(const int& theValue) { highestCardsValue = theValue;}
|
||||
int getHighestCardsValue() const { return highestCardsValue;}
|
||||
|
||||
void resetFirstRun() { firstRiverRun = false; }
|
||||
|
||||
void riverRun();
|
||||
void postRiverRun();
|
||||
void nextPlayer2();
|
||||
|
||||
@@ -44,6 +44,8 @@ public:
|
||||
void setSmallBlind(const int& theValue) { smallBlind = theValue; }
|
||||
int getSmallBlind() const { return smallBlind; }
|
||||
|
||||
void resetFirstRun() { firstTurnRun = false; }
|
||||
|
||||
void turnRun();
|
||||
void nextPlayer2();
|
||||
|
||||
|
||||
@@ -47,20 +47,20 @@ ClientBoard::setHand(HandInterface* br)
|
||||
|
||||
void
|
||||
ClientBoard::collectSets()
|
||||
{
|
||||
sets = 0;
|
||||
int i;
|
||||
for(i=0; i<MAX_NUMBER_OF_PLAYERS; i++) sets += playerArray[i]->getMySet();
|
||||
|
||||
}
|
||||
|
||||
{
|
||||
sets = 0;
|
||||
int i;
|
||||
for(i=0; i<MAX_NUMBER_OF_PLAYERS; i++) sets += playerArray[i]->getMySet();
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
ClientBoard::collectPot()
|
||||
{
|
||||
int i;
|
||||
pot += sets;
|
||||
sets = 0;
|
||||
for(i=0; i<MAX_NUMBER_OF_PLAYERS; i++){ playerArray[i]->setMySetNull(); }
|
||||
}
|
||||
int i;
|
||||
pot += sets;
|
||||
sets = 0;
|
||||
for(i=0; i<MAX_NUMBER_OF_PLAYERS; i++){ playerArray[i]->setMySetNull(); }
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -44,6 +44,8 @@ public:
|
||||
void setSmallBlind(const int& theValue) { smallBlind = theValue; }
|
||||
int getSmallBlind() const { return smallBlind; }
|
||||
|
||||
void resetFirstRun() { firstFlopRun = false; }
|
||||
|
||||
void flopRun();
|
||||
void nextPlayer2();
|
||||
|
||||
|
||||
@@ -47,6 +47,8 @@ public:
|
||||
void setHighestCardsValue(const int& theValue) { highestCardsValue = theValue;}
|
||||
int getHighestCardsValue() const { return highestCardsValue;}
|
||||
|
||||
void resetFirstRun() { firstRiverRun = false; }
|
||||
|
||||
void riverRun();
|
||||
void postRiverRun();
|
||||
void nextPlayer2();
|
||||
|
||||
@@ -43,6 +43,8 @@ public:
|
||||
void setSmallBlind(const int& theValue) { smallBlind = theValue; }
|
||||
int getSmallBlind() const { return smallBlind; }
|
||||
|
||||
void resetFirstRun() { firstTurnRun = false; }
|
||||
|
||||
void turnRun();
|
||||
void nextPlayer2();
|
||||
|
||||
|
||||
@@ -43,6 +43,8 @@ public:
|
||||
virtual void setHighestCardsValue(const int& theValue) =0;
|
||||
virtual int getHighestCardsValue() const =0;
|
||||
|
||||
virtual void resetFirstRun() =0;
|
||||
|
||||
virtual void riverRun() =0;
|
||||
virtual void postRiverRun() =0;
|
||||
virtual void nextPlayer2() =0;
|
||||
|
||||
@@ -40,6 +40,8 @@ public:
|
||||
virtual void setSmallBlind(const int& theValue) =0;
|
||||
virtual int getSmallBlind() const =0;
|
||||
|
||||
virtual void resetFirstRun() =0;
|
||||
|
||||
virtual void turnRun() =0;
|
||||
virtual void nextPlayer2() =0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user