The Battle for Wesnoth
1.13.4+dev
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
editor
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
25
enum
EXIT_STATUS
{
26
EXIT_NORMAL
,
27
EXIT_QUIT_TO_DESKTOP
,
28
EXIT_RELOAD_DATA
,
29
EXIT_ERROR
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
CVideo
Definition:
video.hpp:58
editor::EXIT_NORMAL
Definition:
editor_main.hpp:26
editor
Manage the empty-palette in the editor.
Definition:
action.cpp:28
game_config
Game configuration data as global variables.
Definition:
build_info.cpp:38
editor::EXIT_ERROR
Definition:
editor_main.hpp:29
editor::EXIT_STATUS
EXIT_STATUS
Definition:
editor_main.hpp:25
editor::EXIT_RELOAD_DATA
Definition:
editor_main.hpp:28
editor::EXIT_QUIT_TO_DESKTOP
Definition:
editor_main.hpp:27
config
A config object defines a single node in a WML file, with access to child nodes.
Definition:
config.hpp:83
string
GLsizei const GLcharARB ** string
Definition:
glew.h:4503
editor::start
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
Generated by
1.8.8