summaryrefslogtreecommitdiff
path: root/server/player.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/player.h')
-rw-r--r--server/player.h4
1 files changed, 2 insertions, 2 deletions
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<Player> {
void handle_ready(Message::p msg, boost::function<void ()> ready_callback);
//! Handle Action-message.
- void handle_action(Message::p msg, boost::function<void (Action)> action_callback);
+ void handle_action(Message::p msg, boost::function<void (Action)> action_callback, Actions expected_actions);
public:
//! The ID of the player
@@ -56,7 +56,7 @@ class Player : public boost::enable_shared_from_this<Player> {
void round_end();
//! Get action.
- void get_action(boost::function<void (Action)> callback);
+ void get_action(boost::function<void (Action)> callback, Actions expected_actions);
void kill_action();
};