summaryrefslogtreecommitdiff
path: root/server/client.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/client.h')
-rw-r--r--server/client.h6
1 files changed, 6 insertions, 0 deletions
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<void (Action)> callback, Actions expected_actions) = 0;
+ virtual void game_end(Message::GameEnd::p msg, boost::function<void ()> callback) = 0;
+
};
//! Class implementing ClientBase for real clients.
@@ -102,6 +104,8 @@ class Client : public ClientBase, public boost::enable_shared_from_this<Client>
//! Reconnect a player.
virtual void reconnect(Connection::p c);
+
+ virtual void game_end(Message::GameEnd::p msg, boost::function<void ()> callback);
};
typedef std::vector<Client> Clients;
@@ -121,6 +125,8 @@ class ClientDumb : public ClientBase {
virtual void round_end(Message::RoundEnd::p msg, boost::function<void ()> callback);
virtual void get_action(boost::function<void (Action)> callback, Actions expected_actions);
+
+ virtual void game_end(Message::GameEnd::p msg, boost::function<void ()> callback);
};
#endif