/[maitretarot]/game_server/src/protocol.c
ViewVC logotype

Diff of /game_server/src/protocol.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by ymettier, Sun Apr 27 19:22:36 2003 UTC revision 1.5 by ymettier, Mon Apr 28 00:25:56 2003 UTC
# Line 50  protocol_send_info_t protocol_send_info[ Line 50  protocol_send_info_t protocol_send_info[
50     "SAY_cards_in_hand <nb players> <card 1> ... <card n>",     "SAY_cards_in_hand <nb players> <card 1> ... <card n>",
51     "Say the number of cards for the player, and what cards"}     "Say the number of cards for the player, and what cards"}
52    ,    ,
53      {PROTOCOL_ASK_BIDS, "ASK_bids", -1, "SAY_bid",
54       "ASK_bids <nb players> <bid 1> ... <bid n>",
55       "Say the current bids, and ask for your bid."}
56      ,
57      {PROTOCOL_SAY_BIDS_RESUME, "SAY_bids_resume", -1, NULL,
58       "SAY_bids_resume <nb players> <bid 1> ... <bid n>",
59       "Say the last bids"}
60      ,
61      {PROTOCOL_SAY_WAITING_PLAYER, "SAY_waiting_player", 1, NULL,
62       "SAY_waiting_player <player nick>",
63       "Say who we are waiting. This is rather informational message."}
64      ,
65    {PROTOCOL_INFO, "INFO", 1, NULL, "INFO <message>",    {PROTOCOL_INFO, "INFO", 1, NULL, "INFO <message>",
66     "Send some information string to the player"}     "Send some information string to the player"}
67    ,    ,
# Line 282  print_protocol (void) Line 294  print_protocol (void)
294  void  void
295  protocol_send_array (int sock_id, protocol_e id, char **strings_array)  protocol_send_array (int sock_id, protocol_e id, char **strings_array)
296  {  {
297    int i, n;    int i;
298    GString *gs;    GString *gs;
299    
300    for (i = 0; protocol_send_info[i].id != PROTOCOL_NULL; i++)    for (i = 0; protocol_send_info[i].id != PROTOCOL_NULL; i++)

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26