diff options
Diffstat (limited to 'server/player.h')
-rw-r--r-- | server/player.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/server/player.h b/server/player.h index af9c59e..d0dc73b 100644 --- a/server/player.h +++ b/server/player.h @@ -20,25 +20,21 @@ class Player : public boost::enable_shared_from_this<Player> { boost::asio::deadline_timer timer; - boost::function<void (Player::p)> lobby_callback; - boost::function<void ()> ready_callback; - boost::function<void (Action)> action_callback; - std::string nick_; - Player(Connection::p c, boost::function<void (Player::p)> f); + Player(Connection::p c); //! Start communicating. - void start(); + void start(boost::function<void (Player::p)> f); //! Handle Login-message. - void handle_login(Message::p msg); + void handle_login(Message::p msg, boost::function<void (Player::p)> lobby_callback); //! Handle Ready-message. - void handle_ready(Message::p msg); + void handle_ready(Message::p msg, boost::function<void ()> ready_callback); //! Handle Action-message. - void handle_action(Message::p msg); + void handle_action(Message::p msg, boost::function<void (Action)> action_callback); public: //! The ID of the player |