summaryrefslogtreecommitdiff
path: root/common/message.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/message.cpp')
-rw-r--r--common/message.cpp33
1 files changed, 33 insertions, 0 deletions
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 <boost/serialization/vector.hpp>
#include <boost/serialization/string.hpp>
+#include <boost/serialization/shared_ptr.hpp>
#include <cstring>
#include <sstream>
@@ -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;
+}