summaryrefslogtreecommitdiff
path: root/web/web_scoreboard.h
blob: c712b8eafd570460ac1057796c9f470093f434db (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
#ifndef WEB_SCOREBOARD_H
#define WEB_SCOREBOARD_H

#include <stdbool.h>

void scoreboard_flush();

void scoreboard_set_player_active(int pn);

void scoreboard_flush_player_info(int pn);
void scoreboard_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 scoreboard_show_info(int num_players);
void scoreboard_hide_info();

void draw_visits();

#endif