summaryrefslogtreecommitdiff
path: root/server/client.h
diff options
context:
space:
mode:
authorAtle Hellvik Havsø <atle@havso.net>2010-12-14 23:28:19 +0100
committerAtle Hellvik Havsø <atle@havso.net>2010-12-14 23:28:19 +0100
commitb28b3c5b8ddb6d73c1e7745d15ea328326a544f9 (patch)
tree4f6d2ffa1a0e41200f7606fbe233151226b2a01d /server/client.h
parentd4e406b161376f8f7d195fbc5851c5d6751a01af (diff)
Made server send GameEnd.
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