The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
singleplayer.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2014 - 2016 by Nathan Walker <[email protected]>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #ifndef SINGLEPLAYER_HPP_INCLUDED
16 #define SINGLEPLAYER_HPP_INCLUDED
17 
18 #include "game_launcher.hpp"
19 #include "create_engine.hpp"
20 #include "configure_engine.hpp"
21 #include "connect_engine.hpp"
22 
23 namespace sp {
24 
25 bool enter_create_mode(CVideo& video, const config& game_config,
26  saved_game& state, jump_to_campaign_info jump_to, bool local_players_only = true);
27 
28 bool enter_configure_mode(CVideo& video, const config& game_config,
29  saved_game& state, bool local_players_only = true);
30 
31 bool enter_connect_mode(CVideo& video, const config& game_config,
32  saved_game& state, bool local_players_only = true);
33 
34 } // end namespace sp
35 
36 #endif
std::string jump_to(const unsigned pos)
Definition: help_impl.hpp:381
Definition: video.hpp:58
bool enter_connect_mode(CVideo &video, const config &game_config, saved_game &state, bool local_players_only)
bool enter_create_mode(CVideo &video, const config &game_config, saved_game &state, jump_to_campaign_info jump_to_campaign, bool local_players_only)
bool enter_configure_mode(CVideo &video, const config &game_config, saved_game &state, bool local_players_only)
Game configuration data as global variables.
Definition: build_info.cpp:38
A config object defines a single node in a WML file, with access to child nodes.
Definition: config.hpp:83