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
197bf0dc
Commit
197bf0dc
authored
Jun 10, 2009
by
Max-Wilhelm Bruker
Browse files
bla
parent
7f659573
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/player.cpp
View file @
197bf0dc
...
@@ -74,14 +74,12 @@ Player::~Player()
...
@@ -74,14 +74,12 @@ Player::~Player()
void
Player
::
actMoveHandToTopLibrary
()
void
Player
::
actMoveHandToTopLibrary
()
{
{
CardZone
*
library
=
zones
.
findZone
(
"deck"
);
zones
.
findZone
(
"hand"
)
->
moveAllToZone
(
"deck"
,
0
);
zones
.
findZone
(
"hand"
)
->
moveAllToZone
(
library
->
getName
(),
0
);
}
}
void
Player
::
actMoveHandToBottomLibrary
()
void
Player
::
actMoveHandToBottomLibrary
()
{
{
CardZone
*
library
=
zones
.
findZone
(
"deck"
);
zones
.
findZone
(
"hand"
)
->
moveAllToZone
(
"deck"
,
-
1
);
zones
.
findZone
(
"hand"
)
->
moveAllToZone
(
library
->
getName
(),
library
->
getCards
()
->
size
());
}
}
void
Player
::
actViewLibrary
()
void
Player
::
actViewLibrary
()
...
...
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