00001 /* $Id: mp_create_game.hpp 54051 2012-04-30 21:52:38Z brilliand $ */ 00002 /* 00003 Copyright (C) 2008 - 2012 by Mark de Wever <koraq@xs4all.nl> 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 GUI_DIALOGS_MP_CREATE_GAME_HPP_INCLUDED 00017 #define GUI_DIALOGS_MP_CREATE_GAME_HPP_INCLUDED 00018 00019 #include "gui/dialogs/dialog.hpp" 00020 00021 class config; 00022 00023 namespace gui2 { 00024 00025 class tmp_create_game : public tdialog 00026 { 00027 public: 00028 00029 explicit tmp_create_game(const config& cfg); 00030 00031 private: 00032 00033 /** Inherited from tdialog, implemented by REGISTER_DIALOG. */ 00034 virtual const std::string& window_id() const; 00035 00036 /** Inherited from tdialog. */ 00037 void pre_show(CVideo& video, twindow& window); 00038 00039 /** Inherited from tdialog. */ 00040 void post_show(twindow& window); 00041 00042 const config& cfg_; 00043 00044 const config* scenario_; 00045 00046 /** 00047 * All fields are also in the normal field vector, but they need to be 00048 * manually controled as well so add the pointers here as well. 00049 */ 00050 00051 tfield_bool 00052 *use_map_settings_, 00053 *fog_, 00054 *shroud_, 00055 *start_time_; 00056 00057 tfield_integer 00058 *turns_, 00059 *gold_, 00060 *support_, 00061 *experience_; 00062 00063 public: 00064 00065 // another map selected 00066 void update_map(twindow& window); 00067 00068 // use_map_settings toggled (also called in other cases.) 00069 void update_map_settings(twindow& window); 00070 }; 00071 00072 } // namespace gui2 00073 00074 #endif 00075
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:02:58 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |