diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-12-02 05:27:59 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-12-02 05:27:59 +0100 |
commit | fe18eeff63a33d0dffcbac574986e8b4aa142047 (patch) | |
tree | c6119f933cb7390b9528c75aff1a98006edea2d9 | |
parent | dc291de04681fa78a949b9aa8eb5f8f29b0f9f0e (diff) |
Added fields to Message::RoundState - player.riichi, player.score, player.wind, round_wind, round_number, riichibou, honba.
-rw-r--r-- | common/message.h | 21 |
1 files changed, 21 insertions, 0 deletions
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<class Archive> 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<class Archive> void serialize(Archive & ar, const unsigned int v) { ar & players; |