#ifndef GAME_H #define GAME_H #include "scene.h" #include #include class Game { private: static Game *game; Scene *scene; boost::asio::io_service io_service; boost::asio::ip::tcp::socket socket; public: Game(); ~Game(); void run(std::string host, unsigned int port); void run(std::string host, std::string port); void async_read(); void handle_type(const boost::system::error_code& error, std::size_t bytes_transferred, uint8_t *type); void handle_chunk(); void handle_message(); static Game& get_instance(); }; #endif