Change structure of code base

This commit is contained in:
ParkSuMin committed 2025-04-30 13:06:23 +03:00
1 parent 3b84aa7740
commit 79fcae617e
5 files changed
+40 -34

No files matched your search

-4
View File
@@ -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
+3 -2
View File
@@ -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