Merge pull request #520 from mcallahan/always-reveal-top-master-master
Reset Always reveal top card when starting a new game.
This commit is contained in:
commit
c98a146746
3 changed files with 10 additions and 1 deletions
|
@ -2225,6 +2225,13 @@ qreal Player::getMinimumWidth() const
|
|||
return result;
|
||||
}
|
||||
|
||||
void Player::setGameStarted()
|
||||
{
|
||||
if (local)
|
||||
aAlwaysRevealTopCard->setChecked(false);
|
||||
setConceded(false);
|
||||
}
|
||||
|
||||
void Player::setConceded(bool _conceded)
|
||||
{
|
||||
conceded = _conceded;
|
||||
|
|
|
@ -287,6 +287,8 @@ public:
|
|||
void setConceded(bool _conceded);
|
||||
bool getConceded() const { return conceded; }
|
||||
|
||||
void setGameStarted();
|
||||
|
||||
qreal getMinimumWidth() const;
|
||||
void setMirrored(bool _mirrored);
|
||||
void processSceneSizeChange(int newPlayerWidth);
|
||||
|
|
|
@ -872,7 +872,7 @@ void TabGame::startGame(bool resuming)
|
|||
if (!resuming) {
|
||||
QMapIterator<int, Player *> playerIterator(players);
|
||||
while (playerIterator.hasNext())
|
||||
playerIterator.next().value()->setConceded(false);
|
||||
playerIterator.next().value()->setGameStarted();
|
||||
}
|
||||
|
||||
playerListWidget->setGameStarted(true, resuming);
|
||||
|
|
Loading…
Reference in a new issue