From 121387bfccc0ca2e35d39a8c1c92471f24e4848a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atle=20Hellvik=20Havs=C3=B8?= Date: Mon, 6 Dec 2010 20:57:12 +0100 Subject: Added GameEnd message and made the GameEndDialog use it. --- common/message.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'common/message.h') diff --git a/common/message.h b/common/message.h index 4390cdd..2be68c0 100644 --- a/common/message.h +++ b/common/message.h @@ -234,6 +234,8 @@ namespace Message { int won; Score score[4]; + bool game_end; + template void serialize(Archive & ar, const unsigned int v) { ar & hand; @@ -242,9 +244,23 @@ namespace Message { ar & total_fu; ar & won; ar & score; + ar & game_end; } }; + class GameEnd : public Base { + public: + typedef boost::shared_ptr p; + Message::RoundEnd::Score scores[4]; + + GameEnd() : Base(Types::GameEnd) {} + + template + void serialize(Archive & ar, const unsigned int v) { + ar & scores; + } + + }; typedef boost::shared_ptr p; }; -- cgit v1.2.3