tAddition of new "A_DONEFIGHT" ability; conforming clients now send the server a C_DONE message to indicate that the user has read any relevant messages, closed dialogs, etc. and is ready to move on. - vaccinewars - be a doctor and try to vaccinate the world | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 82bd31408cf47e0d219c71fddeb6ba780ae26fea | |
parent 4e2abfa579b8dff0f346479002e8fc06436594e7 | |
Author: Ben Webb | |
Date: Sat, 13 Apr 2002 16:35:45 +0000 Addition of new "A_DONEFIGHT" ability; conforming clients now send the server a C_DONE message to indicate that the user has read any relevant messages, closed dialogs, etc. and is ready to move on. Diffstat: M ChangeLog | 2 ++ M doc/protocol.html | 28 +++++++++++++++++++++------- M src/AIPlayer.c | 1 + M src/curses_client/curses_client.c | 3 +++ M src/dopewars.h | 4 +++- M src/gui_client/gtk_client.c | 3 +++ M src/message.c | 1 + M src/serverside.c | 34 +++++++++++++++++++++++-------- 8 files changed, 59 insertions(+), 17 deletions(-) --- | |
diff --git a/ChangeLog b/ChangeLog | |
t@@ -1,4 +1,6 @@ cvs + - On fight termination the player is now allowed to close the "Fight" + dialog before any new dialogs pop up - Incorrect handling of WM_CLOSE under Win32 fixed - Unix server now fails "gracefully" if it cannot create the Unix domain socket for admin connections | |
diff --git a/doc/protocol.html b/doc/protocol.html | |
t@@ -396,7 +396,7 @@ C_REQUESTJET or C_FIGHTACT message -data = (playerid)(drugvalue)(newfight)(tstring) +data = (playerid)(drugvalue)(newfight)(tstring)(donefight) playerid = '1' if we use player IDs rather than player names to identify players in network messages ('0' otherwise). It is t@@ -424,7 +424,20 @@ sent in the translated string (tstring) notation; only necessary if you are supporting non-English languages. Ability name in dopewars code: A_TSTRING -e.g. "^^Ar1010" (N.B. the double ^ is a feature of the "old" protocol)donefight = '1' if, when a fight finishes, +the client is expected to send a C_DONE message to instruct the server to +move on. (This is to allow the user to close the fight dialog before any +new dialogs pop up.) Ability name in dopewars code: A_DONEFIGHT + +N.B. Only five abilities are listed here. Older servers or clients +may not only not support some of these abilities, they may not even know +of their existence (conversely, newer versions may add new abilities). Thus +all servers and clients, if passed an unexpectedly short abilities string, +should pad it out with zeroes. If passed a long string, it should be truncated. +This will cause these extra (or unspecified) abilities to be unsupported. +(The order of the abilities string should never change.) + +e.g. "^^Ar10100" (N.B. the double ^ is a feature of the "old" protocol) t@@ -541,11 +554,12 @@ no C_ABILITIES reply message will be sent, and the client should assume that after the C_ABILITIES message to be compliant with these abilities. e.g.-- client sends "1110" (supports everything except +- client sends "11101" (supports everything except A_TSTRING) -- server responds with "1011" (supports everything except -A_DRUGVALUE) -- client should adopt the abilities "1010" ( +- server responds with "10110" (supports everything except +A_DRUGVALUE and +A_DONEFIGHT) +- client should adopt the abilities "10100" ( A_PLAYERID and A_NEWFIGHT) t@@ -558,7 +572,7 @@ e.g. - Last update: 29-10-2001 +Last update: 13-04-2002 |