summaryrefslogtreecommitdiff
path: root/server/client.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/client.h')
-rw-r--r--server/client.h8
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();