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, 3 insertions, 3 deletions
diff --git a/server/client.h b/server/client.h
index 82968b4..752a6a4 100644
--- a/server/client.h
+++ b/server/client.h
@@ -30,7 +30,7 @@ class ClientBase {
virtual void round_state(const PlayerState& pl_d, const PlayerState& pl_r, const PlayerState& pl_u, const PlayerState& pl_l, const GameState& g, const Actions& a) = 0;
//! Send round end.
- virtual void round_end(boost::function<void ()> callback) = 0;
+ virtual void round_end(Message::RoundEnd::p msg, boost::function<void ()> callback) = 0;
//! 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;
@@ -95,7 +95,7 @@ class Client : public ClientBase, public boost::enable_shared_from_this<Client>
virtual void round_state(const PlayerState& pl_d, const PlayerState& pl_r, const PlayerState& pl_u, const PlayerState& pl_l, const GameState& g, const Actions& a);
//! Send round end.
- virtual void round_end(boost::function<void ()> callback);
+ virtual void round_end(Message::RoundEnd::p msg, boost::function<void ()> callback);
//! 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);
@@ -118,7 +118,7 @@ class ClientDumb : public ClientBase {
virtual void round_state(const PlayerState& pl_d, const PlayerState& pl_r, const PlayerState& pl_u, const PlayerState& pl_l, const GameState& g, const Actions& a);
- virtual void round_end(boost::function<void ()> callback);
+ virtual void round_end(Message::RoundEnd::p msg, boost::function<void ()> callback);
virtual void get_action(boost::function<void (Action)> callback, Actions expected_actions);
};