The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
edit_scenario.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 - 2016 by Fabian Mueller <[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 GUI_DIALOGS_EDITOR_EDIT_SCENARIO_HPP_INCLUDED
16 #define GUI_DIALOGS_EDITOR_EDIT_SCENARIO_HPP_INCLUDED
17 
18 #include "gui/dialogs/dialog.hpp"
19 
20 namespace gui2
21 {
22 
24 {
25 public:
28  std::string& description,
29  int& turns,
30  int& experience_modifier,
31  bool& victory_when_enemies_defeated,
32  bool& random_start_time);
33 
34  /** The execute function see @ref tdialog for more information. */
35  static bool execute(std::string& id,
36  std::string& name,
37  std::string& description,
38  int& turns,
39  int& experience_modifier,
40  bool& victory_when_enemies_defeated,
41  bool& random_start_time,
42  CVideo& video)
43  {
44  return teditor_edit_scenario(id,
45  name,
46  description,
47  turns,
48  experience_modifier,
49  victory_when_enemies_defeated,
50  random_start_time).show(video);
51  }
52 
53 private:
54  /** Inherited from tdialog, implemented by REGISTER_DIALOG. */
55  virtual const std::string& window_id() const;
56 };
57 }
58 
59 #endif /* ! GUI_DIALOGS_EDIT_LABEL_INCLUDED */
Definition: video.hpp:58
static bool execute(std::string &id, std::string &name, std::string &description, int &turns, int &experience_modifier, bool &victory_when_enemies_defeated, bool &random_start_time, CVideo &video)
The execute function see tdialog for more information.
A class inherited from ttext_box that displays its input as stars.
Definition: field-fwd.hpp:23
Abstract base class for all dialogs.
Definition: dialog.hpp:121
GLuint const GLchar * name
Definition: glew.h:1782
virtual const std::string & window_id() const
Inherited from tdialog, implemented by REGISTER_DIALOG.
teditor_edit_scenario(std::string &id, std::string &name, std::string &description, int &turns, int &experience_modifier, bool &victory_when_enemies_defeated, bool &random_start_time)
bool random_start_time()
GLsizei const GLcharARB ** string
Definition: glew.h:4503