From b28b3c5b8ddb6d73c1e7745d15ea328326a544f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atle=20Hellvik=20Havs=C3=B8?= Date: Tue, 14 Dec 2010 23:28:19 +0100 Subject: Made server send GameEnd. --- server/client.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'server/client.h') diff --git a/server/client.h b/server/client.h index 752a6a4..e6cfcc7 100644 --- a/server/client.h +++ b/server/client.h @@ -35,6 +35,8 @@ class ClientBase { //! Get action. Upon connection error, last element of expected_actions will be provided. virtual void get_action(boost::function callback, Actions expected_actions) = 0; + virtual void game_end(Message::GameEnd::p msg, boost::function callback) = 0; + }; //! Class implementing ClientBase for real clients. @@ -102,6 +104,8 @@ class Client : public ClientBase, public boost::enable_shared_from_this //! Reconnect a player. virtual void reconnect(Connection::p c); + + virtual void game_end(Message::GameEnd::p msg, boost::function callback); }; typedef std::vector Clients; @@ -121,6 +125,8 @@ class ClientDumb : public ClientBase { virtual void round_end(Message::RoundEnd::p msg, boost::function callback); virtual void get_action(boost::function callback, Actions expected_actions); + + virtual void game_end(Message::GameEnd::p msg, boost::function callback); }; #endif -- cgit v1.2.3