summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-12-02 05:27:59 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-12-02 05:27:59 +0100
commitfe18eeff63a33d0dffcbac574986e8b4aa142047 (patch)
treec6119f933cb7390b9528c75aff1a98006edea2d9 /common
parentdc291de04681fa78a949b9aa8eb5f8f29b0f9f0e (diff)
Added fields to Message::RoundState - player.riichi, player.score, player.wind, round_wind, round_number, riichibou, honba.
Diffstat (limited to 'common')
-rw-r--r--common/message.h21
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;