summaryrefslogtreecommitdiff
path: root/server/game.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-12-04 15:31:03 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-12-04 15:31:19 +0100
commit97951fe38059cc4f0757ebe83466327c556b4e2d (patch)
tree9d4946c36317eecd40fc19d6b32c07a15ca5aa13 /server/game.h
parentb85a6cdad782bc80507fa764cd1b18e9cd5b4191 (diff)
Fill all fields in GameState and PlayerState.
Diffstat (limited to 'server/game.h')
-rw-r--r--server/game.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/game.h b/server/game.h
index b0ec4a2..c347a6b 100644
--- a/server/game.h
+++ b/server/game.h
@@ -31,9 +31,11 @@ class Game : public boost::enable_shared_from_this<Game> {
Tilegroups open;
Tiles pond;
bool riichi;
+ int score;
+ int wind;
//! Prepare for a new round.
- void round_start();
+ void round_start(int w);
//! Get a state snapshot.
PlayerState get_state();
@@ -102,6 +104,9 @@ class Game : public boost::enable_shared_from_this<Game> {
PlayerNum current_player;
+ PlayerNum round_wind;
+ PlayerNum round_num;
+
int awaiting_players;
Action preceding_action;