diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-11-19 17:51:54 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-11-19 17:51:54 +0100 |
commit | a5fbbe1c51968d330f1621efb5bf5d3b3c4ddf4d (patch) | |
tree | 5060c293b81d92cce82e8a0f0218083fb83afa99 /common/message.h | |
parent | 10ecd24fa6f22c5b72e7cfb1b6e0025347821149 (diff) |
Add RoundStart, RoundState and RoundAction messages.
Diffstat (limited to 'common/message.h')
-rw-r--r-- | common/message.h | 34 |
1 files changed, 34 insertions, 0 deletions
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 <vector> #include <string> +#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<RoundStart> p; + + RoundStart(); + }; + + class RoundState : public BoostBase { + public: + typedef boost::shared_ptr<RoundState> 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<RoundAction> p; + + RoundAction(); + + Action action; + + virtual void serialize(boost::archive::text_oarchive& ar); + virtual void deserialize(boost::archive::text_iarchive& ar); + }; + typedef boost::shared_ptr<Base> p; }; |