From fdd3d58c92fc924c31c3acad69dcb3d0dac06ac0 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Thu, 2 Dec 2010 02:13:49 +0100 Subject: Send current_player with RoundState. --- server/client.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/client.h') diff --git a/server/client.h b/server/client.h index 91fd4b6..add78f0 100644 --- a/server/client.h +++ b/server/client.h @@ -28,7 +28,7 @@ class ClientBase { 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) = 0; + 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; //! Send round end. virtual void round_end(boost::function callback) = 0; @@ -83,7 +83,7 @@ class Client : public ClientBase, public boost::enable_shared_from_this 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); + 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); //! Send round end. virtual void round_end(boost::function callback); @@ -102,7 +102,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); + 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_end(boost::function callback); -- cgit v1.2.3