blob: 14bbc62dec1edbb3d67a0b52db836e55e63f4269 (
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
26
27
28
|
#ifndef OXEN_GLOBAL_H
#define OXEN_GLOBAL_H
#include "player.h"
#include "table_stacks.h"
#include "hand.h"
typedef struct
{
char nickname[MAX_PLAYER_NAME_LENGTH+1];
player_list_t player_list;
table_stacks_t table_stacks;
hand_t hand;
uint8_t stack_index;
card selected_card;
} data_store;
typedef enum
{
update_type_players = 0x0,
update_type_stacks = 0x1,
update_type_hand = 0x2
} update_type_t;
void updated_model(update_type_t type);
data_store* datamodel();
#endif // OXEN_GLOBAL_H
|