From 34e376a4908f8f2235d28314c4f779bbd1d09389 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Fri, 3 Dec 2010 10:33:05 +0100 Subject: Use PlayerState and GameState in Message::RoundState. --- server/game.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'server/game.h') diff --git a/server/game.h b/server/game.h index 1de6c73..b0ec4a2 100644 --- a/server/game.h +++ b/server/game.h @@ -9,6 +9,7 @@ #include "wall.h" #include "client.h" #include "../common/action.h" +#include "../common/state.h" #include "../common/cyclicint.h" class Game : public boost::enable_shared_from_this { @@ -34,13 +35,11 @@ class Game : public boost::enable_shared_from_this { //! Prepare for a new round. void round_start(); - typedef Client::PlayerState State; - //! Get a state snapshot. - State get_state(); + PlayerState get_state(); //! Get a state snapshot, with concealed tiles filtered. - State get_state_filtered(); + PlayerState get_state_filtered(); //! Get possible actions after a draw. Actions get_actions_draw(); -- cgit v1.2.3