#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 say(const std::string msg); 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_pos(); void handle_chunk(); void handle_message(); void handle_player(); void handle_object(); static Game& get_instance(); static void free(); }; #endif