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
5cdc3c68
Commit
5cdc3c68
authored
Dec 10, 2010
by
Max-Wilhelm Bruker
Browse files
Added 'move top card to bottom'
parent
0908a8da
Changes
2
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/player.cpp
View file @
5cdc3c68
...
@@ -136,6 +136,8 @@ Player::Player(ServerInfo_User *info, int _id, bool _local, TabGame *_parent)
...
@@ -136,6 +136,8 @@ Player::Player(ServerInfo_User *info, int _id, bool _local, TabGame *_parent)
connect
(
aMoveTopCardsToGrave
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
actMoveTopCardsToGrave
()));
connect
(
aMoveTopCardsToGrave
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
actMoveTopCardsToGrave
()));
aMoveTopCardsToExile
=
new
QAction
(
this
);
aMoveTopCardsToExile
=
new
QAction
(
this
);
connect
(
aMoveTopCardsToExile
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
actMoveTopCardsToExile
()));
connect
(
aMoveTopCardsToExile
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
actMoveTopCardsToExile
()));
aMoveTopCardToBottom
=
new
QAction
(
this
);
connect
(
aMoveTopCardToBottom
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
actMoveTopCardToBottom
()));
}
}
playerMenu
=
new
QMenu
(
QString
());
playerMenu
=
new
QMenu
(
QString
());
...
@@ -166,6 +168,7 @@ Player::Player(ServerInfo_User *info, int _id, bool _local, TabGame *_parent)
...
@@ -166,6 +168,7 @@ Player::Player(ServerInfo_User *info, int _id, bool _local, TabGame *_parent)
libraryMenu
->
addSeparator
();
libraryMenu
->
addSeparator
();
libraryMenu
->
addAction
(
aMoveTopCardsToGrave
);
libraryMenu
->
addAction
(
aMoveTopCardsToGrave
);
libraryMenu
->
addAction
(
aMoveTopCardsToExile
);
libraryMenu
->
addAction
(
aMoveTopCardsToExile
);
libraryMenu
->
addAction
(
aMoveTopCardToBottom
);
deck
->
setMenu
(
libraryMenu
,
aDrawCard
);
deck
->
setMenu
(
libraryMenu
,
aDrawCard
);
}
else
{
}
else
{
handMenu
=
0
;
handMenu
=
0
;
...
@@ -408,6 +411,7 @@ void Player::retranslateUi()
...
@@ -408,6 +411,7 @@ void Player::retranslateUi()
aShuffle
->
setText
(
tr
(
"&Shuffle"
));
aShuffle
->
setText
(
tr
(
"&Shuffle"
));
aMoveTopCardsToGrave
->
setText
(
tr
(
"Move top cards to &graveyard..."
));
aMoveTopCardsToGrave
->
setText
(
tr
(
"Move top cards to &graveyard..."
));
aMoveTopCardsToExile
->
setText
(
tr
(
"Move top cards to &exile..."
));
aMoveTopCardsToExile
->
setText
(
tr
(
"Move top cards to &exile..."
));
aMoveTopCardToBottom
->
setText
(
tr
(
"Put top card on &bottom"
));
handMenu
->
setTitle
(
tr
(
"&Hand"
));
handMenu
->
setTitle
(
tr
(
"&Hand"
));
mRevealHand
->
setTitle
(
tr
(
"&Reveal to"
));
mRevealHand
->
setTitle
(
tr
(
"&Reveal to"
));
...
@@ -577,6 +581,11 @@ void Player::actMoveTopCardsToExile()
...
@@ -577,6 +581,11 @@ void Player::actMoveTopCardsToExile()
sendCommandContainer
(
new
CommandContainer
(
commandList
));
sendCommandContainer
(
new
CommandContainer
(
commandList
));
}
}
void
Player
::
actMoveTopCardToBottom
()
{
sendGameCommand
(
new
Command_MoveCard
(
-
1
,
"deck"
,
0
,
"deck"
,
-
1
,
0
,
false
));
}
void
Player
::
actUntapAll
()
void
Player
::
actUntapAll
()
{
{
sendGameCommand
(
new
Command_SetCardAttr
(
-
1
,
"table"
,
-
1
,
"tapped"
,
"0"
));
sendGameCommand
(
new
Command_SetCardAttr
(
-
1
,
"table"
,
-
1
,
"tapped"
,
"0"
));
...
...
cockatrice/src/player.h
View file @
5cdc3c68
...
@@ -84,6 +84,7 @@ public slots:
...
@@ -84,6 +84,7 @@ public slots:
void
actMulligan
();
void
actMulligan
();
void
actMoveTopCardsToGrave
();
void
actMoveTopCardsToGrave
();
void
actMoveTopCardsToExile
();
void
actMoveTopCardsToExile
();
void
actMoveTopCardToBottom
();
void
actViewLibrary
();
void
actViewLibrary
();
void
actViewTopCards
();
void
actViewTopCards
();
...
@@ -116,7 +117,7 @@ private:
...
@@ -116,7 +117,7 @@ private:
QAction
*
aMoveHandToTopLibrary
,
*
aMoveHandToBottomLibrary
,
*
aMoveHandToGrave
,
*
aMoveHandToRfg
,
QAction
*
aMoveHandToTopLibrary
,
*
aMoveHandToBottomLibrary
,
*
aMoveHandToGrave
,
*
aMoveHandToRfg
,
*
aMoveGraveToTopLibrary
,
*
aMoveGraveToBottomLibrary
,
*
aMoveGraveToHand
,
*
aMoveGraveToRfg
,
*
aMoveGraveToTopLibrary
,
*
aMoveGraveToBottomLibrary
,
*
aMoveGraveToHand
,
*
aMoveGraveToRfg
,
*
aMoveRfgToTopLibrary
,
*
aMoveRfgToBottomLibrary
,
*
aMoveRfgToHand
,
*
aMoveRfgToGrave
,
*
aMoveRfgToTopLibrary
,
*
aMoveRfgToBottomLibrary
,
*
aMoveRfgToHand
,
*
aMoveRfgToGrave
,
*
aViewLibrary
,
*
aViewTopCards
,
*
aMoveTopCardsToGrave
,
*
aMoveTopCardsToExile
,
*
aViewLibrary
,
*
aViewTopCards
,
*
aMoveTopCardsToGrave
,
*
aMoveTopCardsToExile
,
*
aMoveTopCardToBottom
,
*
aViewGraveyard
,
*
aViewRfg
,
*
aViewSideboard
,
*
aViewGraveyard
,
*
aViewRfg
,
*
aViewSideboard
,
*
aDrawCard
,
*
aDrawCards
,
*
aMulligan
,
*
aShuffle
,
*
aDrawCard
,
*
aDrawCards
,
*
aMulligan
,
*
aShuffle
,
*
aUntapAll
,
*
aRollDie
,
*
aCreateToken
,
*
aCreateAnotherToken
,
*
aUntapAll
,
*
aRollDie
,
*
aCreateToken
,
*
aCreateAnotherToken
,
...
...
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