diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-12-01 14:03:29 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-12-01 14:03:29 +0100 |
commit | 99960dd1580e32423bda5b53ad9c39ebb6b1dbd9 (patch) | |
tree | 91ce75134198b47d70a534abe20697db5aa371cf /server/client.h | |
parent | 272f4f8b4b12e4d732b1a5adaa37b318c0058675 (diff) |
Added lobby support to Client.
Diffstat (limited to 'server/client.h')
-rw-r--r-- | server/client.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/client.h b/server/client.h index 4ba36d7..cbb588f 100644 --- a/server/client.h +++ b/server/client.h @@ -28,7 +28,10 @@ class Client : public boost::enable_shared_from_this<Client> { void start(boost::function<void (Client::p)> f); //! Handle Login-message. - void handle_login(Message::p msg, boost::function<void (Client::p)> lobby_callback); + void handle_login(Message::p msg, boost::function<void (Client::p)> login_callback); + + //! Handle LobbyAction-message. + void handle_lobby(Message::p msg, boost::function<void (int)> lobby_callback); //! Handle Ready-message. void handle_ready(Message::p msg, boost::function<void ()> ready_callback); @@ -37,6 +40,9 @@ class Client : public boost::enable_shared_from_this<Client> { void handle_action(Message::p msg, boost::function<void (Action)> action_callback, Actions expected_actions); public: + //! Inform client of lobby status (available game modes). + void lobby_status(const std::vector<std::string>& game_modes, boost::function<void (int)> callback); + //! Return client's nick. std::string nick(); |