multiplayer.cpp File Reference

#include "global.hpp"
#include "construct_dialog.hpp"
#include "dialogs.hpp"
#include "game_config.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "multiplayer.hpp"
#include "multiplayer_ui.hpp"
#include "multiplayer_connect.hpp"
#include "multiplayer_wait.hpp"
#include "multiplayer_lobby.hpp"
#include "multiplayer_create.hpp"
#include "playmp_controller.hpp"
#include "network.hpp"
#include "playcampaign.hpp"
#include "game_preferences.hpp"
#include "preferences_display.hpp"
#include "random.hpp"
#include "replay.hpp"
#include "video.hpp"
#include "statistics.hpp"
#include "serialization/string_utils.hpp"
#include "upload_log.hpp"
#include "wml_separators.hpp"

Include dependency graph for multiplayer.cpp:

Go to the source code of this file.

Namespaces

namespace  mp

Defines

#define LOG_NW   LOG_STREAM(info, network)

Enumerations

enum  server_type { ABORT_SERVER, WESNOTHD_SERVER, SIMPLE_SERVER }

Functions

static void run_lobby_loop (display &disp, mp::ui &ui)
static server_type open_connection (game_display &disp, const std::string &original_host)
static void enter_wait_mode (game_display &disp, const config &game_config, mp::chat &chat, config &gamelist, bool observe)
static void enter_create_mode (game_display &disp, const config &game_config, mp::chat &chat, config &gamelist, mp::controller default_controller, bool is_server)
static void enter_connect_mode (game_display &disp, const config &game_config, mp::chat &chat, config &gamelist, const mp::create::parameters &params, mp::controller default_controller, bool is_server)
static void enter_lobby_mode (game_display &disp, const config &game_config, mp::chat &chat, config &gamelist)
void mp::start_server (game_display &disp, const config &game_config, mp::controller default_controller, bool is_server)
 Starts a multiplayer game in server mode, or in single-user mode.
void mp::start_client (game_display &disp, const config &game_config, const std::string host)
 Starts a multiplayer game in client mode.


Define Documentation

#define LOG_NW   LOG_STREAM(info, network)


Enumeration Type Documentation

Enumerator:
ABORT_SERVER 
WESNOTHD_SERVER 
SIMPLE_SERVER 

Definition at line 91 of file multiplayer.cpp.


Function Documentation

static void enter_connect_mode ( game_display disp,
const config game_config,
mp::chat chat,
config gamelist,
const mp::create::parameters params,
mp::controller  default_controller,
bool  is_server 
) [static]

static void enter_create_mode ( game_display disp,
const config game_config,
mp::chat chat,
config gamelist,
mp::controller  default_controller,
bool  is_server 
) [static]

static void enter_lobby_mode ( game_display disp,
const config game_config,
mp::chat chat,
config gamelist 
) [static]

static void enter_wait_mode ( game_display disp,
const config game_config,
mp::chat chat,
config gamelist,
bool  observe 
) [static]

static server_type open_connection ( game_display disp,
const std::string &  original_host 
) [static]

static void run_lobby_loop ( display disp,
mp::ui ui 
) [static]


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs