From 825614edeb97f753215bc33fb33600be9d7884b2 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Thu, 25 Nov 2010 12:48:20 +0100 Subject: Added dora-field to RoundState. --- common/message.cpp | 2 ++ common/message.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/common/message.cpp b/common/message.cpp index f3a4748..568ad9d 100644 --- a/common/message.cpp +++ b/common/message.cpp @@ -142,10 +142,12 @@ Message::RoundState::RoundState(State state_) : BoostBase(Types::RoundState), st void Message::RoundState::serialize(boost::archive::text_oarchive& ar) { ar & state; + ar & dora; } void Message::RoundState::deserialize(boost::archive::text_iarchive& ar) { ar & state; + ar & dora; } Message::RoundAction::RoundAction() : BoostBase(Types::RoundAction) { diff --git a/common/message.h b/common/message.h index efcca2e..69135fe 100644 --- a/common/message.h +++ b/common/message.h @@ -14,6 +14,7 @@ using boost::dynamic_pointer_cast; #include #include "state.h" +#include "tile.h" namespace Message { namespace Types { @@ -142,6 +143,7 @@ namespace Message { RoundState(State state_); State state; + Tiles dora; virtual void serialize(boost::archive::text_oarchive& ar); virtual void deserialize(boost::archive::text_iarchive& ar); -- cgit v1.2.3