00001 /* $Id: multiplayer.hpp 52533 2012-01-07 02:35:17Z shadowmaster $ */ 00002 /* 00003 Copyright (C) 2005 - 2012 Philippe Plantier <ayin@anathas.org> 00004 Part of the Battle for Wesnoth Project http://www.wesnoth.org 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY. 00012 00013 See the COPYING file for more details. 00014 */ 00015 #ifndef MULTIPLAYER_HPP_INCLUDED 00016 #define MULTIPLAYER_HPP_INCLUDED 00017 00018 #include "multiplayer_ui.hpp" 00019 00020 class config; 00021 class game_display; 00022 00023 namespace mp { 00024 00025 // max. length of a player name 00026 const size_t max_login_size = 20; 00027 00028 /* 00029 * This is the main entry points of multiplayer mode. 00030 */ 00031 00032 /** Starts a multiplayer game in single-user mode. 00033 * 00034 * @param disp The global display 00035 * @param game_config The global, top-level WML configuration for the game 00036 * @param default_controller The default controller type 00037 */ 00038 void start_local_game(game_display& disp, const config& game_config, 00039 mp::controller default_controller); 00040 00041 /** Starts a multiplayer game in client mode. 00042 * 00043 * @param disp The global display 00044 * @param game_config The global, top-level WML configuration for the game 00045 * @param host The host to connect to. 00046 */ 00047 void start_client(game_display& disp, const config& game_config, 00048 const std::string& host); 00049 00050 00051 } 00052 #endif
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:03:06 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |