The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
editor_main.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008 - 2016 by Tomasz Sniatowski <[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 EDITOR_EDITOR_MAIN_H_INCLUDED
16 #define EDITOR_EDITOR_MAIN_H_INCLUDED
17 
18 #include <string>
19 
20 class config;
21 class CVideo;
22 
23 namespace editor {
24 
30 };
31 
32 /**
33  * Main interface for launching the editor from the title screen.
34  * @returns How the editor was exited (whether the intent was to
35  * go back to the titlescreen or quit to desktop altogether)
36  */
37 
38 EXIT_STATUS start(const config& game_config, CVideo& video, const std::string& filename = "", bool take_screenshot = false, const std::string& screenshot_filename = "map_screenshot.bmp");
39 
40 } //end namespace editor
41 
42 #endif
Definition: video.hpp:58
Manage the empty-palette in the editor.
Definition: action.cpp:28
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
GLsizei const GLcharARB ** string
Definition: glew.h:4503
EXIT_STATUS start(const config &game_conf, CVideo &video, const std::string &filename, bool take_screenshot, const std::string &screenshot_filename)
Main interface for launching the editor from the title screen.
Definition: editor_main.cpp:28