From a5fbbe1c51968d330f1621efb5bf5d3b3c4ddf4d Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Fri, 19 Nov 2010 17:51:54 +0100 Subject: Add RoundStart, RoundState and RoundAction messages. --- common/message.cpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'common/message.cpp') diff --git a/common/message.cpp b/common/message.cpp index a72bac9..bc0e3dd 100644 --- a/common/message.cpp +++ b/common/message.cpp @@ -2,6 +2,7 @@ #include #include +#include #include #include @@ -124,3 +125,35 @@ void Message::GameStart::deserialize(boost::archive::text_iarchive& ar) { Message::Ready::Ready() : NullBase(Types::Ready) { } + +Message::RoundStart::RoundStart() : NullBase(Types::RoundStart) { + +} + +Message::RoundState::RoundState() : BoostBase(Types::RoundState) { + +} + +Message::RoundState::RoundState(State::p state_) : BoostBase(Types::RoundState), state(state_) { + +} + +void Message::RoundState::serialize(boost::archive::text_oarchive& ar) { + ar & state; +} + +void Message::RoundState::deserialize(boost::archive::text_iarchive& ar) { + ar & state; +} + +Message::RoundAction::RoundAction() : BoostBase(Types::RoundAction) { + +} + +void Message::RoundAction::serialize(boost::archive::text_oarchive& ar) { + ar & action; +} + +void Message::RoundAction::deserialize(boost::archive::text_iarchive& ar) { + ar & action; +} -- cgit v1.2.3