From fe18eeff63a33d0dffcbac574986e8b4aa142047 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Thu, 2 Dec 2010 05:27:59 +0100 Subject: Added fields to Message::RoundState - player.riichi, player.score, player.wind, round_wind, round_number, riichibou, honba. --- common/message.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'common') diff --git a/common/message.h b/common/message.h index 0051e03..0380b3e 100644 --- a/common/message.h +++ b/common/message.h @@ -166,6 +166,15 @@ namespace Message { //! Discarded tiles. Tiles pond; + //! Riichi declared? + bool riichi; + + //! Player's score + int score; + + //! Seat wind. + int wind; + template void serialize(Archive & ar, const unsigned int v) { ar & hand; @@ -195,6 +204,18 @@ namespace Message { //! Current player, relative to client. 0 = self, 1 = shimocha and so on. int current_player; + //! Round (prevalent) wind. + int round_wind; + + //! Round number (of this wind). + int round_number; + + //! Count of riichi sticks on table (current and leftovers). + int riichibou; + + //! Count of honba sticks on table (indicating renchan). + int honba; + template void serialize(Archive & ar, const unsigned int v) { ar & players; -- cgit v1.2.3