Change structure of code base
This commit is contained in:
@@ -30,9 +30,5 @@ class Maze{
|
||||
bool is_wall(int, int) const;
|
||||
|
||||
void set_moves_left(int);
|
||||
|
||||
//void generate_maze();
|
||||
//void print_maze_info();
|
||||
//void play_game();
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -16,11 +16,12 @@ const int MAX_CLIENTS = 512;
|
||||
class Server {
|
||||
private:
|
||||
bool service_mode;
|
||||
int server_fd;
|
||||
void handle_client(int client_socket, bool _mode); // Принимает клиентский сокет
|
||||
bool check_status(Maze& maze);
|
||||
public:
|
||||
Server() : service_mode(false){};
|
||||
void start(const std::string& h = "localhost", const unsigned short p = 1024u); // Запуск сервера
|
||||
Server(const std::string& h = "localhost", const unsigned short p = 1024u, bool service_mode = false);
|
||||
void start(); // Запуск сервера
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user