diff options
Diffstat (limited to 'server/client.h')
-rw-r--r-- | server/client.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/server/client.h b/server/client.h index add78f0..3455056 100644 --- a/server/client.h +++ b/server/client.h @@ -25,10 +25,8 @@ class ClientBase { //! Notify client of a round start. virtual void round_start() = 0; - typedef Message::RoundState::Player PlayerState; - //! Send round state. - virtual void round_state(const PlayerState& pl_d, const PlayerState& pl_r, const PlayerState& pl_u, const PlayerState& pl_l, const Tiles& d, const Actions& a, int p) = 0; + 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; @@ -83,7 +81,7 @@ class Client : public ClientBase, public boost::enable_shared_from_this<Client> virtual void round_start(); //! Send round state. - virtual void round_state(const PlayerState& pl_d, const PlayerState& pl_r, const PlayerState& pl_u, const PlayerState& pl_l, const Tiles& d, const Actions& a, int p); + 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); @@ -102,7 +100,7 @@ class ClientDumb : public ClientBase { virtual void round_start(); - virtual void round_state(const PlayerState& pl_d, const PlayerState& pl_r, const PlayerState& pl_u, const PlayerState& pl_l, const Tiles& d, const Actions& a, int p); + 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); |