From a265fcaf73543d028b44a10fbbca2b18979f3845 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Thu, 25 Nov 2010 01:33:42 +0100 Subject: Check for valid action. --- server/player.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/player.h') diff --git a/server/player.h b/server/player.h index d0dc73b..25eddd3 100644 --- a/server/player.h +++ b/server/player.h @@ -34,7 +34,7 @@ class Player : public boost::enable_shared_from_this { void handle_ready(Message::p msg, boost::function ready_callback); //! Handle Action-message. - void handle_action(Message::p msg, boost::function action_callback); + void handle_action(Message::p msg, boost::function action_callback, Actions expected_actions); public: //! The ID of the player @@ -56,7 +56,7 @@ class Player : public boost::enable_shared_from_this { void round_end(); //! Get action. - void get_action(boost::function callback); + void get_action(boost::function callback, Actions expected_actions); void kill_action(); }; -- cgit v1.2.3