blob: 5ebc0a4007a1378c0f40557a878f14ed523dd6e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef OXEN_GAME_H
#define OXEN_GAME_H
#include <stdbool.h>
#include <stdint.h>
#define MIN_CARD 1
#define MAX_CARD 104
typedef enum {
STATE_CLIENT_WAIT_FOR_HAND_CARDS,
STATE_CLIENT_SELECT_OPEN_CARD,
STATE_CLIENT_WAIT_FOR_OPEN_CARDS,
STATE_CLIENT_PLAY_CARDS,
STATE_SERVER_DEAL_HAND_CARDS,
STATE_SERVER_WAIT_FOR_OPEN_CARDS,
STATE_SERVER_PLAY_CARDS
} gamestate;
void start_game(const bool servermode, const char* addr, const char* port);
#endif // OXEN_GAME_H
|