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.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'common/message.h') diff --git a/common/message.h b/common/message.h index 6b2744d..26deb32 100644 --- a/common/message.h +++ b/common/message.h @@ -13,6 +13,8 @@ using boost::dynamic_pointer_cast; #include #include +#include "state.h" + namespace Message { namespace Types { //! Message types. @@ -124,6 +126,38 @@ namespace Message { Ready(); }; + class RoundStart : public NullBase { + public: + typedef boost::shared_ptr p; + + RoundStart(); + }; + + class RoundState : public BoostBase { + public: + typedef boost::shared_ptr p; + + RoundState(); + RoundState(State::p state_); + + State::p state; + + virtual void serialize(boost::archive::text_oarchive& ar); + virtual void deserialize(boost::archive::text_iarchive& ar); + }; + + class RoundAction : public BoostBase { + public: + typedef boost::shared_ptr p; + + RoundAction(); + + Action action; + + virtual void serialize(boost::archive::text_oarchive& ar); + virtual void deserialize(boost::archive::text_iarchive& ar); + }; + typedef boost::shared_ptr p; }; -- cgit v1.2.3