diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-11-25 12:48:20 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-11-25 12:48:20 +0100 |
commit | 825614edeb97f753215bc33fb33600be9d7884b2 (patch) | |
tree | 0cf09d34b50e3aa5883b66fd0eb886d4df58e0d4 | |
parent | 2b29d4f8843c21b09d2e8f5183b6edba4063c191 (diff) |
Added dora-field to RoundState.
-rw-r--r-- | common/message.cpp | 2 | ||||
-rw-r--r-- | common/message.h | 2 |
2 files changed, 4 insertions, 0 deletions
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 <string> #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); |