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
da467468
Commit
da467468
authored
Sep 15, 2011
by
unknown
Browse files
improved facedown moving
parent
1047ab08
Changes
22
Show whitespace changes
Inline
Side-by-side
common/server_player.h
View file @
da467468
...
...
@@ -83,8 +83,8 @@ public:
ResponseCode
drawCards
(
CommandContainer
*
cont
,
int
number
);
ResponseCode
undoDraw
(
CommandContainer
*
cont
);
ResponseCode
moveCard
(
CommandContainer
*
cont
,
const
QString
&
_startZone
,
const
QList
<
CardToMove
*>
&
_cards
,
int
_targetPlayer
,
const
QString
&
_targetZone
,
int
_x
,
int
_y
,
bool
_faceDown
);
ResponseCode
moveCard
(
CommandContainer
*
cont
,
Server_CardZone
*
startzone
,
const
QList
<
CardToMove
*>
&
_cards
,
Server_CardZone
*
targetzone
,
int
x
,
int
y
,
bool
faceDown
,
bool
fixFreeSpaces
=
true
,
bool
undoingDraw
=
false
);
ResponseCode
moveCard
(
CommandContainer
*
cont
,
const
QString
&
_startZone
,
const
QList
<
CardToMove
*>
&
_cards
,
int
_targetPlayer
,
const
QString
&
_targetZone
,
int
_x
,
int
_y
);
ResponseCode
moveCard
(
CommandContainer
*
cont
,
Server_CardZone
*
startzone
,
const
QList
<
CardToMove
*>
&
_cards
,
Server_CardZone
*
targetzone
,
int
x
,
int
y
,
bool
fixFreeSpaces
=
true
,
bool
undoingDraw
=
false
);
void
unattachCard
(
CommandContainer
*
cont
,
Server_Card
*
card
);
ResponseCode
setCardAttrHelper
(
CommandContainer
*
cont
,
const
QString
&
zone
,
int
cardId
,
const
QString
&
attrName
,
const
QString
&
attrValue
);
...
...
common/server_protocolhandler.cpp
View file @
da467468
...
...
@@ -762,7 +762,7 @@ ResponseCode Server_ProtocolHandler::cmdMoveCard(Command_MoveCard *cmd, CommandC
if
(
player
->
getConceded
())
return
RespContextError
;
return
player
->
moveCard
(
cont
,
cmd
->
getStartZone
(),
cmd
->
getCards
(),
cmd
->
getTargetPlayerId
(),
cmd
->
getTargetZone
(),
cmd
->
getX
(),
cmd
->
getY
()
,
cmd
->
getFaceDown
()
);
return
player
->
moveCard
(
cont
,
cmd
->
getStartZone
(),
cmd
->
getCards
(),
cmd
->
getTargetPlayerId
(),
cmd
->
getTargetZone
(),
cmd
->
getX
(),
cmd
->
getY
());
}
ResponseCode
Server_ProtocolHandler
::
cmdFlipCard
(
Command_FlipCard
*
cmd
,
CommandContainer
*
cont
,
Server_Game
*
game
,
Server_Player
*
player
)
...
...
Prev
1
2
Next
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