back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/client/client.h
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-08-16 18:10:11 +0300
committerscratko <m@scratko.xyz>2024-08-16 18:10:11 +0300
commiteb90648bdad1443c9cfc72e903a93642e10a0ab7 (patch)
treedc567a9aa834bb0d5f3429e8a38910990d75e4eb /client/client.h
parent880b8be2c28d761505b2eecc1386919d5add6f2f (diff)
downloaddurak-eb90648bdad1443c9cfc72e903a93642e10a0ab7.tar.gz
durak-eb90648bdad1443c9cfc72e903a93642e10a0ab7.tar.bz2
durak-eb90648bdad1443c9cfc72e903a93642e10a0ab7.zip
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.
Diffstat (limited to 'client/client.h')
-rw-r--r--client/client.h13
1 files changed, 12 insertions, 1 deletions
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