summaryrefslogtreecommitdiff
path: root/server/lobby.h
blob: d266a991b2e02188c268e96692dae3a506911c7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef LOBBY_H
#define LOBBY_H

#include <boost/asio.hpp>

#include "tcpserver.h"
#include "player.h"

class Lobby {
	private:
		boost::asio::io_service io_service;
		TCPServer server;
		
		//! Handle new connection.
		void handle_connect(Connection::p connection);
		
		//! Handle action.
		void handle_action(Player::p player);
	
	public:
		Lobby();
		
		void run();
};

#endif