From eb90648bdad1443c9cfc72e903a93642e10a0ab7 Mon Sep 17 00:00:00 2001 From: scratko Date: Fri, 16 Aug 2024 18:10:11 +0300 Subject: Global fixes v2.0 Added spectator mode. Added screen of game result. Added definition of durak. If not all players can replenish their decks, they take cards one at a time in turn. --- client/client.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'client/client.h') diff --git a/client/client.h b/client/client.h index 9bdd8cc..1ff8f82 100644 --- a/client/client.h +++ b/client/client.h @@ -23,7 +23,16 @@ enum client_states { defense, tossing, card_acceptance_status, - tossing_limit_status + tossing_limit_status, + spectator, + result +}; + +enum spectator_mode { + spectator_attack, + spectator_defense, + spectator_tossing, + spectator_table }; struct cards_on_table { @@ -67,6 +76,8 @@ struct client { int display_new_frame; int all_input_cards_accepted; int data_left_in_buffer; + enum spectator_mode sp_mode; + int durak_position; }; #endif -- cgit v1.2.3