Classes | Typedefs | Enumerations | Functions | Variables

mp Namespace Reference

This module controls the multiplayer lobby. More...

Classes

class  connect
class  create
struct  minimap_cache_item
class  gamebrowser
class  lobby
class  chat
 this class memorizes a chat session. More...
class  ui
 a base class for the different multiplayer base dialogs: game list, create game, wait game, game setup. More...
class  wait

Typedefs

typedef std::vector< const
config * > 
faction_list

Enumerations

enum  controller {
  CNTR_NETWORK = 0, CNTR_LOCAL, CNTR_COMPUTER, CNTR_EMPTY,
  CNTR_RESERVED, CNTR_LAST
}

Functions

void start_local_game (game_display &disp, const config &game_config, mp::controller default_controller)
 Starts a multiplayer game in single-user mode.
void start_client (game_display &disp, const config &game_config, const std::string &host)
 Starts a multiplayer game in client mode.
void check_response (network::connection res, const config &data)
void level_to_gamestate (config &level, game_state &state)
std::string get_color_string (int id)
int find_suitable_faction (faction_list const &fl, const config &side)
 Picks the first faction with the greater amount of data matching the criteria.

Variables

const size_t max_login_size = 20

Detailed Description

This module controls the multiplayer lobby.

A section on the server which allows players to chat, create games, and join games.


Typedef Documentation

typedef std::vector<const config *> mp::faction_list

Definition at line 273 of file multiplayer_ui.hpp.


Enumeration Type Documentation

Enumerator:
CNTR_NETWORK 
CNTR_LOCAL 
CNTR_COMPUTER 
CNTR_EMPTY 
CNTR_RESERVED 
CNTR_LAST 

Definition at line 35 of file multiplayer_ui.hpp.


Function Documentation

void mp::check_response ( network::connection  res,
const config data 
)

Referenced by mp::wait::join_game(), and open_connection().

Here is the caller graph for this function:

int mp::find_suitable_faction ( faction_list const &  fl,
const config side 
)

Picks the first faction with the greater amount of data matching the criteria.

Referenced by mp::wait::join_game(), and mp::connect::side::side().

Here is the caller graph for this function:

std::string mp::get_color_string ( int  id  ) 

Referenced by mp::wait::generate_menu(), and mp::connect::lists_init().

Here is the caller graph for this function:

void mp::level_to_gamestate ( config level,
game_state state 
)

Referenced by mp::wait::start_game(), and mp::connect::start_game().

Here is the caller graph for this function:

void mp::start_client ( game_display disp,
const config game_config,
const std::string &  host 
)

Starts a multiplayer game in client mode.

Parameters:
disp The global display
game_config The global, top-level WML configuration for the game
host The host to connect to.

Referenced by game_controller::play_multiplayer().

Here is the caller graph for this function:

void mp::start_local_game ( game_display disp,
const config game_config,
mp::controller  default_controller 
)

Starts a multiplayer game in single-user mode.

Parameters:
disp The global display
game_config The global, top-level WML configuration for the game
default_controller The default controller type

Referenced by game_controller::play_multiplayer().

Here is the caller graph for this function:


Variable Documentation

const size_t mp::max_login_size = 20

Definition at line 26 of file multiplayer.hpp.

Referenced by gui2::tmp_method_selection::pre_show().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:24:14 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs