summaryrefslogtreecommitdiff
path: root/server/lobby.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'server/lobby.cpp')
-rw-r--r--server/lobby.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/lobby.cpp b/server/lobby.cpp
index 748d70f..79c207b 100644
--- a/server/lobby.cpp
+++ b/server/lobby.cpp
@@ -8,20 +8,20 @@
void Lobby::handle_connect(Connection::p connection) {
// Create player.
- Player::create(connection, boost::bind(&Lobby::handle_action, this, _1));
+ Client::create(connection, boost::bind(&Lobby::handle_action, this, _1));
// Get another connection.
server.get_connection(boost::bind(&Lobby::handle_connect, this, _1));
}
-void Lobby::handle_action(Player::p player) {
- std::cout << "Player " << player->nick() << " entered the lobby." << std::endl;
+void Lobby::handle_action(Client::p client) {
+ std::cout << "Client " << client->nick() << " entered the lobby." << std::endl;
if(waiting.size() >= 3) {
- Game::create(waiting[0], waiting[1], waiting[2], player);
+ Game::create(waiting[0], waiting[1], waiting[2], client);
waiting.clear();
} else {
- waiting.push_back(player);
+ waiting.push_back(client);
}
}