24 namespace ng {
class connect_engine; }
A config object defines a single node in a WML file, with access to child nodes.
This class represents the collective information the client has about the players and games on the se...
RAII helper class to register a network handler.
std::function< void()> remove_handler
std::function< void(const config &)> handler
network_registrar(handler func)
Main entry points of multiplayer mode.
lobby_info * get_lobby_info()
Returns the lobby_info object for the given session.
const std::size_t max_login_size
Max length of a player name.
void send_to_server(const config &data)
Attempts to send given data to server if a connection is open.
void start_local_game()
Starts a multiplayer game in single-user mode.
bool goto_mp_staging(ng::connect_engine &engine)
Opens the MP Staging screen and sets the game state according to the changes made.
void start_local_game_commandline(const commandline_options &cmdline_opts)
Starts a multiplayer game in single-user mode using command line settings.
std::string get_profile_link(int user_id)
Gets the forum profile link for the given user.
void start_client(const std::string &host)
Pubic entry points for the MP workflow.
bool logged_in_as_moderator()
Gets whether the currently logged-in user is a moderator.
bool goto_mp_wait(bool observe)
Opens the MP Join Game screen and sets the game state according to the changes made.