The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
mp_create_game.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008 - 2016 by Mark de Wever <[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_MP_CREATE_GAME_HPP_INCLUDED
16 #define GUI_DIALOGS_MP_CREATE_GAME_HPP_INCLUDED
17 
18 #include "gui/dialogs/dialog.hpp"
19 
20 class config;
21 
22 namespace gui2
23 {
24 
25 class tmp_create_game : public tdialog
26 {
27 public:
28  explicit tmp_create_game(const config& cfg);
29 
30 private:
31  /** Inherited from tdialog, implemented by REGISTER_DIALOG. */
32  virtual const std::string& window_id() const;
33 
34  /** Inherited from tdialog. */
35  void pre_show(twindow& window);
36 
37  /** Inherited from tdialog. */
38  void post_show(twindow& window);
39 
40  const config& cfg_;
41 
42  const config* scenario_;
43 
44  /**
45  * All fields are also in the normal field vector, but they need to be
46  * manually controlled as well so add the pointers here as well.
47  */
48 
50 
52 
53 public:
54  // another map selected
55  void update_map(twindow& window);
56 
57  // use_map_settings toggled (also called in other cases.)
58  void update_map_settings(twindow& window);
59 };
60 
61 } // namespace gui2
62 
63 #endif
void update_map(twindow &window)
tfield_integer * experience_
const config * scenario_
tfield_bool * use_map_settings_
All fields are also in the normal field vector, but they need to be manually controlled as well so ad...
tfield_bool * start_time_
void update_map_settings(twindow &window)
Template class to implement the generic field implementation.
Definition: field-fwd.hpp:36
tfield_integer * turns_
base class of top level items, the only item which needs to store the final canvases to draw on ...
Definition: window.hpp:62
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
virtual const std::string & window_id() const
Inherited from tdialog, implemented by REGISTER_DIALOG.
tfield_integer * gold_
void pre_show(twindow &window)
Inherited from tdialog.
tmp_create_game(const config &cfg)
A config object defines a single node in a WML file, with access to child nodes.
Definition: config.hpp:83
void post_show(twindow &window)
Inherited from tdialog.
Specialized field class for boolean.
Definition: field.hpp:547
GLsizei const GLcharARB ** string
Definition: glew.h:4503
tfield_integer * support_