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
244b244b
Commit
244b244b
authored
Jul 01, 2009
by
Max-Wilhelm Bruker
Browse files
foo
parent
7023b95d
Changes
1
Show whitespace changes
Inline
Side-by-side
cockatrice/
doc/protocol.txt
→
doc/protocol.txt
View file @
244b244b
...
@@ -66,9 +66,56 @@ Otherwise, "ok" is returned and for each game currently, a list_games event XXX
...
@@ -66,9 +66,56 @@ Otherwise, "ok" is returned and for each game currently, a list_games event XXX
sent to the client. The "accepts game list changes" flag of the connection is set.
sent to the client. The "accepts game list changes" flag of the connection is set.
3.4 create_game
3.4 create_game
Flags:
login needed
Parameters:
Description (string)
Password (string)
Number of players (int)
Valid response codes:
ok
A game with the given parameters is created. The client is set as creator of the
game and joins it automatically. The "accepts game list changes" flag of the connection
is unset.
3.5 join_game
3.5 join_game
Flags:
login needed
Parameters:
Game ID (int)
Password (string)
Valid response codes:
ok
password
If the password for the given game is correct, the client leaves the current game
(if any) and joins the given game. The "accepts game list changes" flag of the connection
is unset.
3.6 leave_game
3.6 leave_game
Flags:
login needed
game needed
Parameters:
none
Valid response codes:
ok
The client leaves the current game.
3.7 list_players
3.7 list_players
Flags:
login needed
game needed
Parameters:
none
3.8 say
3.8 say
3.9 submit_deck
3.9 submit_deck
3.10 ready_start
3.10 ready_start
...
...
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