summaryrefslogtreecommitdiff
path: root/web/web_ui.h
blob: a302e0a5f3c4defe4dfc2f6a5ccf0fc6ea36c9cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef WEB_UI_H
#define WEB_UI_H

#include <stdbool.h>

void ui_flush();

void ui_flush_player_info(int pn);
void ui_set_player_avg(int pn, double avg);

void update_player_name(int pn, char *str);
void update_player_sugg(int pn, int rem);
void update_player_avg(int pn, int n_darts);
void update_player_rem(int pn, int rem);
void clear_player_info(int pn);

void draw_visits();
void draw_boat_throwing(int pts, char *str, double x, double y);

bool is_key_active(char *k);
void toggle_key(char *k);
void deactivate_key(char *k);

#endif