diff options
Diffstat (limited to 'server/player.cpp')
-rw-r--r-- | server/player.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/server/player.cpp b/server/player.cpp index 6673937..8397c48 100644 --- a/server/player.cpp +++ b/server/player.cpp @@ -2,12 +2,14 @@ #include "hand.h" -void Game::Player::round_start() { +void Game::Player::round_start(int w) { // Reset contents. hand.clear(); open.clear(); pond.clear(); riichi = false; + score = 25000; + wind = w; // Notify client of round start. client->round_start(); @@ -17,7 +19,7 @@ PlayerState Game::Player::get_state() { Tilegroups h = open; h.insert(h.begin(), hand); - PlayerState state = {h, pond}; + PlayerState state = {h, pond, riichi, score, wind}; return state; } @@ -25,7 +27,7 @@ PlayerState Game::Player::get_state_filtered() { Tilegroups h = open; h.insert(h.begin(), hand); - PlayerState state = {h, pond}; + PlayerState state = {h, pond, riichi, score, wind}; return state; } |