Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
142b42e0
Commit
142b42e0
authored
Jan 01, 2015
by
Michael Callahan
Browse files
Reset Always reveal top card when starting a new game.
parent
f5293579
Changes
3
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/player.cpp
View file @
142b42e0
...
...
@@ -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
;
...
...
cockatrice/src/player.h
View file @
142b42e0
...
...
@@ -286,6 +286,8 @@ public:
void
setConceded
(
bool
_conceded
);
bool
getConceded
()
const
{
return
conceded
;
}
void
setGameStarted
();
qreal
getMinimumWidth
()
const
;
void
setMirrored
(
bool
_mirrored
);
...
...
cockatrice/src/tab_game.cpp
View file @
142b42e0
...
...
@@ -872,7 +872,7 @@ void TabGame::startGame(bool resuming)
if
(
!
resuming
)
{
QMapIterator
<
int
,
Player
*>
playerIterator
(
players
);
while
(
playerIterator
.
hasNext
())
playerIterator
.
next
().
value
()
->
set
Conceded
(
false
);
playerIterator
.
next
().
value
()
->
set
GameStarted
(
);
}
playerListWidget
->
setGameStarted
(
true
,
resuming
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment