From 446a32d0e301285e54fa1030fb2138b0169d3fae Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 2 May 2022 05:53:27 -0700 Subject: web: move control logic to separate file --- web/web_control.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 web/web_control.h (limited to 'web/web_control.h') diff --git a/web/web_control.h b/web/web_control.h new file mode 100644 index 0000000..33cbd2c --- /dev/null +++ b/web/web_control.h @@ -0,0 +1,18 @@ +#ifndef WEB_CONTROL_H +#define WEB_CONTROL_H + +void set_active_player(int pn); +void toggle_active_player(); + +void start_match(int mode); +void end_match(); +void user_visit(int points); +void user_num_darts(int n); +void user_undo(); +void user_visit_to_rem(int rem); +void update_user_rem_from_pts(int pts); +void end_boat_visit(int rem, double avg); + +void handle_next(); + +#endif -- cgit v1.2.3-70-g09d2