summaryrefslogtreecommitdiff
path: root/server/client.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/client.h')
-rw-r--r--server/client.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/server/client.h b/server/client.h
index ad5df64..ec22e85 100644
--- a/server/client.h
+++ b/server/client.h
@@ -37,14 +37,11 @@ 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:
- //! The ID of the client
- int id;
-
//! Return client's nick.
std::string nick();
//! Notify client of a game start.
- void game_start(boost::function<void ()> callback, std::vector<Client::p> players);
+ void game_start(boost::function<void ()> callback, std::vector<std::string> players);
//! Notify client of a round start.
void round_start();
@@ -55,10 +52,8 @@ class Client : public boost::enable_shared_from_this<Client> {
//! Send round end.
void round_end();
- //! Get action.
+ //! Get action. Upon connection error, last element of expected_actions will be provided.
void get_action(boost::function<void (Action)> callback, Actions expected_actions);
-
- void kill_action();
};
typedef std::vector<Client> Clients;