Automatic action when for player timeout. First try, not finished yet.
This commit is contained in:
@@ -585,6 +585,7 @@ mainWindowImpl::mainWindowImpl(ConfigFile *c, QMainWindow *parent)
|
||||
connect(this, SIGNAL(signalRefreshGameLabels(int)), this, SLOT(refreshGameLabels(int)));
|
||||
|
||||
connect(this, SIGNAL(signalMeInAction()), this, SLOT(meInAction()));
|
||||
connect(this, SIGNAL(signalDisableMyButtons()), this, SLOT(disableMyButtons()));
|
||||
connect(this, SIGNAL(signalStartTimeoutAnimation(int, int)), this, SLOT(startTimeoutAnimation(int, int)));
|
||||
connect(this, SIGNAL(signalStopTimeoutAnimation(int)), this, SLOT(stopTimeoutAnimation(int)));
|
||||
|
||||
@@ -1551,7 +1552,6 @@ void mainWindowImpl::myFold(){
|
||||
|
||||
holeCardsArray[0][0]->startFadeOut(10);
|
||||
holeCardsArray[0][1]->startFadeOut(10);
|
||||
disableMyButtons();
|
||||
|
||||
//set that i was the last active player. need this for unhighlighting groupbox
|
||||
currentHand->setLastPlayersTurn(0);
|
||||
@@ -1568,8 +1568,6 @@ void mainWindowImpl::myCheck() {
|
||||
currentHand->getPlayerArray()[0]->setMyTurn(0);
|
||||
currentHand->getPlayerArray()[0]->setMyAction(2);
|
||||
|
||||
disableMyButtons();
|
||||
|
||||
//set that i was the last active player. need this for unhighlighting groupbox
|
||||
currentHand->setLastPlayersTurn(0);
|
||||
|
||||
@@ -1611,8 +1609,6 @@ void mainWindowImpl::myCall(){
|
||||
currentHand->getBoard()->collectSets();
|
||||
refreshPot();
|
||||
|
||||
disableMyButtons();
|
||||
|
||||
//set that i was the last active player. need this for unhighlighting groupbox
|
||||
currentHand->setLastPlayersTurn(0);
|
||||
|
||||
@@ -1723,8 +1719,6 @@ void mainWindowImpl::mySet(){
|
||||
currentHand->getBoard()->collectSets();
|
||||
refreshPot();
|
||||
|
||||
disableMyButtons();
|
||||
|
||||
statusBar()->clearMessage();
|
||||
|
||||
//set that i was the last active player. need this for unhighlighting groupbox
|
||||
@@ -1760,8 +1754,6 @@ void mainWindowImpl::myAllIn(){
|
||||
currentHand->getBoard()->collectSets();
|
||||
refreshPot();
|
||||
|
||||
disableMyButtons();
|
||||
|
||||
statusBar()->clearMessage();
|
||||
|
||||
//set that i was the last active player. need this for unhighlighting groupbox
|
||||
@@ -1777,6 +1769,9 @@ void mainWindowImpl::myActionDone() {
|
||||
// to transfer the action to the server.
|
||||
mySession->sendClientPlayerAction();
|
||||
|
||||
// TODO: Should not call in networking game.
|
||||
disableMyButtons();
|
||||
|
||||
nextPlayerAnimation();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user