starts human player input filed redesign - PART VII (firtst steps for network game)
This commit is contained in:
@@ -2389,19 +2389,13 @@ void mainWindowImpl::nextPlayerAnimation() {
|
||||
if((*it_c)->getMyID() == currentHand->getLastPlayersTurn()) break;
|
||||
}
|
||||
|
||||
refreshAction(currentHand->getLastPlayersTurn(), (*it_c)->getMyAction());
|
||||
if(currentHand->getLastPlayersTurn() != -1) {
|
||||
refreshAction(currentHand->getLastPlayersTurn(), (*it_c)->getMyAction());
|
||||
}
|
||||
refreshCash();
|
||||
|
||||
//refresh actions for human player
|
||||
|
||||
if(currentHand->getLastPlayersTurn() == 0) {
|
||||
myButtonsCheckable(FALSE);
|
||||
clearMyButtons();
|
||||
}
|
||||
else {
|
||||
myButtonsCheckable(TRUE);
|
||||
provideMyActions();
|
||||
}
|
||||
updateMyButtonsState();
|
||||
|
||||
nextPlayerAnimationTimer->start(nextPlayerSpeed1);
|
||||
}
|
||||
@@ -3532,6 +3526,20 @@ void mainWindowImpl::mouseOverFlipCards(bool front) {
|
||||
}
|
||||
}
|
||||
|
||||
void mainWindowImpl::updateMyButtonsState() {
|
||||
|
||||
HandInterface *currentHand = mySession->getCurrentGame()->getCurrentHand();
|
||||
|
||||
if(currentHand->getLastPlayersTurn() == 0) {
|
||||
myButtonsCheckable(FALSE);
|
||||
clearMyButtons();
|
||||
}
|
||||
else {
|
||||
myButtonsCheckable(TRUE);
|
||||
provideMyActions();
|
||||
}
|
||||
}
|
||||
|
||||
void mainWindowImpl::uncheckMyButtons() {
|
||||
|
||||
pushButton_BetRaise->setChecked(FALSE);
|
||||
|
||||
Reference in New Issue
Block a user