From 244b244bfff9548c2d70e7e2ad0dd70934c6cf1d Mon Sep 17 00:00:00 2001 From: Max-Wilhelm Bruker Date: Wed, 1 Jul 2009 17:58:11 +0200 Subject: [PATCH] foo --- {cockatrice/doc => doc}/protocol.txt | 47 ++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) rename {cockatrice/doc => doc}/protocol.txt (78%) diff --git a/cockatrice/doc/protocol.txt b/doc/protocol.txt similarity index 78% rename from cockatrice/doc/protocol.txt rename to doc/protocol.txt index 639437c0..2e88f62f 100644 --- a/cockatrice/doc/protocol.txt +++ b/doc/protocol.txt @@ -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. 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 + +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 + +Flags: + login needed + game needed +Parameters: + none +Valid response codes: + ok + +The client leaves the current game. + 3.7 list_players + +Flags: + login needed + game needed +Parameters: + none + + 3.8 say 3.9 submit_deck 3.10 ready_start