diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-12-13 07:37:21 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-12-13 07:37:21 +0100 |
commit | d432140a22c45841d43eaf7e4b9352fe24f5062f (patch) | |
tree | 2ff60682833f717af65fafb386447d26d54ca655 /server/client.h | |
parent | b738bb935955ddc66b04cd5fc50dd8ed8ab75765 (diff) |
Fill RoundEnd with info.
Diffstat (limited to 'server/client.h')
-rw-r--r-- | server/client.h | 6 |
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); }; |