diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-02 05:53:27 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-02 05:53:27 -0700 |
commit | 446a32d0e301285e54fa1030fb2138b0169d3fae (patch) | |
tree | bfae5ee543e920e7b4e2e0df2b481c6d244fe992 /web/web_control.h | |
parent | 4383f26c4ede32e1d32b851a2da6efa2cffcdaf2 (diff) | |
download | dartboat-446a32d0e301285e54fa1030fb2138b0169d3fae.tar.gz dartboat-446a32d0e301285e54fa1030fb2138b0169d3fae.tar.xz |
web: move control logic to separate file
Diffstat (limited to 'web/web_control.h')
-rw-r--r-- | web/web_control.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 |