20 |
#include "cardgame_server.h" |
#include "cardgame_server.h" |
21 |
#include <glib.h> |
#include <glib.h> |
22 |
|
|
23 |
|
typedef enum |
24 |
|
{ |
25 |
|
READ_CHIEN_TOO_FEW_ARGUMENTS, |
26 |
|
READ_CHIEN_BAD_ARGUMENT, |
27 |
|
READ_CHIEN_WRONG_CHIEN, |
28 |
|
READ_CHIEN_OK |
29 |
|
} read_chient_e; |
30 |
|
|
31 |
GString *game_params_are_ok (char *type, int nb_players); |
GString *game_params_are_ok (char *type, int nb_players); |
32 |
void send_message_SAY_resume (int sock_id, game_t * g); |
void send_message_SAY_resume (int sock_id, game_t * g); |
33 |
void send_message_SAY_cards_in_hand (int sock_id, game_t * g, int player_id); |
void send_message_SAY_cards_in_hand (int sock_id, game_t * g, int player_id); |
34 |
|
int player_get_position (player_t * player); |
35 |
void send_ask_bids (int sock_id, player_t * p, int is_resume); |
void send_ask_bids (int sock_id, player_t * p, int is_resume); |
36 |
void send_info_chien (int sock_id, player_t * p); |
void send_info_chien (int sock_id, player_t * p); |
37 |
void send_ask_chien (int sock_id, player_t * p); |
void send_ask_chien (int sock_id, player_t * p); |
38 |
|
read_chient_e read_chien (char **aline, game_t * game); |
39 |
|
|
40 |
void game_start (game_t * g); |
void game_start (game_t * g); |
41 |
|
|