mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 15:35:25 +00:00
53 lines
1.4 KiB
C++
53 lines
1.4 KiB
C++
/* $Id$ */
|
|
/*
|
|
Copyright (C) 2005 - 2011 Philippe Plantier <ayin@anathas.org>
|
|
Part of the Battle for Wesnoth Project http://www.wesnoth.org
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY.
|
|
|
|
See the COPYING file for more details.
|
|
*/
|
|
#ifndef MULTIPLAYER_HPP_INCLUDED
|
|
#define MULTIPLAYER_HPP_INCLUDED
|
|
|
|
#include "multiplayer_ui.hpp"
|
|
|
|
class config;
|
|
class game_display;
|
|
|
|
namespace mp {
|
|
|
|
// max. length of a player name
|
|
const size_t max_login_size = 20;
|
|
|
|
/*
|
|
* This is the main entry points of multiplayer mode.
|
|
*/
|
|
|
|
/** Starts a multiplayer game in single-user mode.
|
|
*
|
|
* @param disp The global display
|
|
* @param game_config The global, top-level WML configuration for the game
|
|
* @param default_controller The default controller type
|
|
*/
|
|
void start_local_game(game_display& disp, const config& game_config,
|
|
mp::controller default_controller);
|
|
|
|
/** Starts a multiplayer game in client mode.
|
|
*
|
|
* @param disp The global display
|
|
* @param game_config The global, top-level WML configuration for the game
|
|
* @param host The host to connect to.
|
|
*/
|
|
void start_client(game_display& disp, const config& game_config,
|
|
const std::string& host);
|
|
|
|
|
|
}
|
|
#endif
|