diff options
| author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-23 15:23:48 -0700 | 
|---|---|---|
| committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-23 15:25:07 -0700 | 
| commit | 15ff00e056a98ab4210dde3d4461a88849d6c1d4 (patch) | |
| tree | 280b8d248baee5d2ae0dcc2117e3f2b309d128ec /web/web_match.h | |
| parent | c93897ed2013f20d6ece33815971d206fd0d056e (diff) | |
| download | dartboat-15ff00e056a98ab4210dde3d4461a88849d6c1d4.tar.gz dartboat-15ff00e056a98ab4210dde3d4461a88849d6c1d4.tar.xz | |
move a bunch of general match logic from web to lib
Diffstat (limited to 'web/web_match.h')
| -rw-r--r-- | web/web_match.h | 18 | 
1 files changed, 1 insertions, 17 deletions
| diff --git a/web/web_match.h b/web/web_match.h index 8fb2056..04664f4 100644 --- a/web/web_match.h +++ b/web/web_match.h @@ -3,20 +3,11 @@  #include "match.h" -enum player_type { -	PT_USER, -	PT_COMP -}; -  struct match_state {  	int id; -	struct leg **legs; -	enum player_type *player_types; -	int *comp_undone; -	int num_players, size_players; +	struct match *m; -	int active_player;  	int num_darts;  }; @@ -36,7 +27,6 @@ extern struct match_state *state;  extern struct match_opts *match_opts;  void match_new(); -void match_add_player(int start_pts, enum player_type type, char *name);  void free_state();  void match_opts_new();  void match_opts_add_player(enum player_type type, char *name); @@ -45,12 +35,6 @@ void match_opts_free();  struct leg *state_active_leg(); -int match_num_players(); -int match_winning_player(); -bool match_is_over(); -int match_prev_player(); -int match_next_player(); -int match_prev_throw_player();  bool match_player_is_comp(int pn);  bool match_first_user_has_thrown(); | 
