editor/editor_main.hpp

Go to the documentation of this file.
00001 /* $Id: editor_main.hpp 52533 2012-01-07 02:35:17Z shadowmaster $ */
00002 /*
00003    Copyright (C) 2008 - 2012 by Tomasz Sniatowski <kailoran@gmail.com>
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 
00016 #ifndef EDITOR_EDITOR_MAIN_H_INCLUDED
00017 #define EDITOR_EDITOR_MAIN_H_INCLUDED
00018 
00019 #include <string>
00020 
00021 class config;
00022 class CVideo;
00023 
00024 namespace editor {
00025 
00026 enum EXIT_STATUS {
00027     EXIT_NORMAL,
00028     EXIT_QUIT_TO_DESKTOP,
00029     EXIT_RELOAD_DATA,
00030     EXIT_ERROR
00031 };
00032 
00033 /**
00034  * Main interface for launching the editor from the title screen.
00035  * @returns How the editor was exited (whether the intent was to
00036  *          go back to the titlescreen or quit to desktop altogeter)
00037  */
00038 
00039 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");
00040 
00041 } //end namespace editor
00042 
00043 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:02:34 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs