summaryrefslogtreecommitdiff
path: root/server/game.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-12-03 10:33:05 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-12-03 10:33:05 +0100
commit34e376a4908f8f2235d28314c4f779bbd1d09389 (patch)
tree4af1ebbf313d6a10bcde77d87a0cd4a3c30ad37e /server/game.h
parent391b6e2ad7541100191c2f2d4dd9ea5163de8f19 (diff)
Use PlayerState and GameState in Message::RoundState.
Diffstat (limited to 'server/game.h')
-rw-r--r--server/game.h7
1 files changed, 3 insertions, 4 deletions
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<Game> {
@@ -34,13 +35,11 @@ class Game : public boost::enable_shared_from_this<Game> {
//! 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();