blob: 1aead519d4b15549932a035d8303a7602c83862f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef SERVER_DATA_PROCESSING_H_SENTRY
#define SERVER_DATA_PROCESSING_H_SENTRY
#include "server_game_process.h"
int print_message_for_first_player(int fd);
int print_connected_players(int fd, int number);
int send_disconnect_status(int fd);
int check_readiness(struct session *client);
/* for define spectator mode */
int print_game_part(const struct session *client, enum server_states ss,
struct game_info *gi);
int get_cards_from_attacker(struct session *client,
const struct cards_on_table *cot,
const player_cards defense_deck,
struct card_queue *cq);
int get_card_from_defender(struct session *client, struct cards_on_table *cot,
const char *trump_suit);
int get_cards_from_tossing_player(struct session *client,
const player_cards defense_deck,
struct cards_on_table *cot,
struct card_queue *cq);
void print_game_result(const struct session *client, int durak_position);
#endif
|