From c7181ee943069bde7f5d468d11ee63c3a535980d Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Tue, 25 Jan 2011 16:12:34 +0100 Subject: finished implementing play_cards function for client/server; added new message type next_action which indicates whether the game is finished or the server will deal new cards --- src/net/comm.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/net/comm.c') diff --git a/src/net/comm.c b/src/net/comm.c index 000c96f..0c7d8e9 100644 --- a/src/net/comm.c +++ b/src/net/comm.c @@ -56,6 +56,9 @@ bool net_recv(const int sock, const msg_type_t type) case msg_type_selected_stack_s: result = client_parse_selected_stack(&m); break; + case msg_type_next_action: + result = client_parse_next_action(&m); + break; default: printf("net_recv: Unknown message type %d received!\n", type); exit(EXIT_FAILURE); @@ -103,6 +106,9 @@ bool net_send(const int sock, const msg_type_t type, const void *data) case msg_type_selected_card_all: server_prep_selected_card_all(&m); break; + case msg_type_next_action: + server_prep_next_action(&m); + break; default: printf("net_send: Unknown message type %d given\n", type); exit(EXIT_FAILURE); -- cgit v1.2.3