#include "NetworkServer.hh"
#include "NetworkClient.hh"
class Engine {
private:
// game state
GameState game_state;
// network server/client
NetworkServer *net_server;
NetworkClient *net_client;
// to exit the mainloop
bool is_running;
// default constructor
Engine (void);
public:
static void runNetworkServer (const std::string &listen_port);
static void runNetworkClient (const std::string &connect_host, const std::string &connect_port);
static void log (const std::string &level, const std::string &type, const std::string &message);
private:
void main_loop (void);
};