summaryrefslogtreecommitdiff
path: root/server/game.cpp
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-11-27 09:48:20 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-11-27 09:48:20 +0100
commit4fe0de7a49b92b288b4ee577fa96450569b7b9cb (patch)
treecc69a8d27a17be7bd5efaa4991cff9411db3e57b /server/game.cpp
parentc9a12a47d6cbcaa3b6f4357083c92380e9b3d36f (diff)
Added dora.
Diffstat (limited to 'server/game.cpp')
-rw-r--r--server/game.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/server/game.cpp b/server/game.cpp
index 76ee99d..75b369d 100644
--- a/server/game.cpp
+++ b/server/game.cpp
@@ -63,6 +63,10 @@ void Game::round_start() {
// Build a new wall.
wall.build();
+ // Clear previous dora and draw a new.
+ dora.clear();
+ dora.push_back(wall.take_one());
+
// Notify players of round start.
// TODO: Tell them where wall is broken.
players[0].round_start();
@@ -111,7 +115,7 @@ void Game::round_update_draw() {
a = possible_actions;
}
- players[player].client->round_state(state[0], state[1], state[2], state[3], Tiles(), a);
+ players[player].client->round_state(state[0], state[1], state[2], state[3], dora, a);
} while(++player);
// Await action from client.
@@ -140,7 +144,7 @@ void Game::round_update_discard() {
}
}
- players[player].client->round_state(state[0], state[1], state[2], state[3], Tiles(), a);
+ players[player].client->round_state(state[0], state[1], state[2], state[3], dora, a);
} while(++player);
preceding_action = Action::Pass;