From 99960dd1580e32423bda5b53ad9c39ebb6b1dbd9 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Wed, 1 Dec 2010 14:03:29 +0100 Subject: Added lobby support to Client. --- server/client.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'server/client.h') 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 { void start(boost::function f); //! Handle Login-message. - void handle_login(Message::p msg, boost::function lobby_callback); + void handle_login(Message::p msg, boost::function login_callback); + + //! Handle LobbyAction-message. + void handle_lobby(Message::p msg, boost::function lobby_callback); //! Handle Ready-message. void handle_ready(Message::p msg, boost::function ready_callback); @@ -37,6 +40,9 @@ class Client : public boost::enable_shared_from_this { void handle_action(Message::p msg, boost::function action_callback, Actions expected_actions); public: + //! Inform client of lobby status (available game modes). + void lobby_status(const std::vector& game_modes, boost::function callback); + //! Return client's nick. std::string nick(); -- cgit v1.2.3