summaryrefslogtreecommitdiff
path: root/server/game.h
diff options
context:
space:
mode:
authorAtle Hellvik Havsø <atle@havso.net>2010-11-20 13:36:48 +0100
committerAtle Hellvik Havsø <atle@havso.net>2010-11-20 13:36:48 +0100
commite31595d5f2bedbdabb59ce8e3fe32b901e33c1a2 (patch)
treecfa10631af057ea3f343f5663bf17ca2db62d570 /server/game.h
parent93763b9327c6b11016d1b20ea2bb7882f915e33e (diff)
Server responds to discard messages.
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
Diffstat (limited to 'server/game.h')
-rw-r--r--server/game.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/server/game.h b/server/game.h
index 634ea4d..3ed97e4 100644
--- a/server/game.h
+++ b/server/game.h
@@ -31,12 +31,17 @@ class Game : public boost::enable_shared_from_this<Game> {
//! The current state of the game
State::p game_state;
+ //! Current player, used when discarding etc
+ int current_player;
+
+ //! Are we in draw or discard phase?
+ bool draw_phase;
+
+ //! Number of players doing action
int num_player_actions;
- bool east_action;
- bool west_action;
- bool south_action;
- bool north_action;
+ //! Highest value action done
+ Action most_value_action;
//! Handle Ready message from player.
void handle_ready();