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
81e4e089
Commit
81e4e089
authored
Apr 07, 2015
by
Zach
Browse files
Merge pull request #921 from poixen/more_server_whitelist
Added more actions to server white list
parents
c07ec9aa
76801543
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/server_protocolhandler.cpp
View file @
81e4e089
...
...
@@ -185,18 +185,20 @@ Response::ResponseCode Server_ProtocolHandler::processRoomCommandContainer(const
Response
::
ResponseCode
Server_ProtocolHandler
::
processGameCommandContainer
(
const
CommandContainer
&
cont
,
ResponseContainer
&
rc
)
{
static
QList
<
GameCommand
::
GameCommandType
>
antifloodCommandsWhiteList
=
QList
<
GameCommand
::
GameCommandType
>
()
// draw
,
und
raw
card
s (eg
: drawing 10 cards one by one from the deck)
// draw
/
und
o
card
draw (example
: drawing 10 cards one by one from the deck)
<<
GameCommand
::
DRAW_CARDS
<<
GameCommand
::
UNDO_DRAW
// create, delete arrows (e
g
: targeting with 10 cards during an attack)
// create, delete arrows (e
xample
: targeting with 10 cards during an attack)
<<
GameCommand
::
CREATE_ARROW
<<
GameCommand
::
DELETE_ARROW
// set card attributes (e
g
: tapping 10 cards at once)
// set card attributes (e
xample
: tapping 10 cards at once)
<<
GameCommand
::
SET_CARD_ATTR
// increment / decrement counter (e
g
: -10 lifepoints one by one)
// increment / decrement counter (e
xample
: -10 life
points one by one)
<<
GameCommand
::
INC_COUNTER
// mulling lots of hands in a row
<<
GameCommand
::
MULLIGAN
;
<<
GameCommand
::
MULLIGAN
// allows a user to sideboard without receiving flooding message
<<
GameCommand
::
MOVE_CARD
;
if
(
authState
==
NotLoggedIn
)
return
Response
::
RespLoginNeeded
;
...
...
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