gui/dialogs/editor_set_starting_position.hpp

Go to the documentation of this file.
00001 /* $Id: editor_set_starting_position.hpp 52869 2012-02-03 20:18:33Z shadowmaster $ */
00002 /*
00003    Copyright (C) 2011 - 2012 by Ignacio Riquelme Morelle <shadowm2006@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 GUI_DIALOGS_EDITOR_SET_STARTING_POSITION_HPP_INCLUDED
00017 #define GUI_DIALOGS_EDITOR_SET_STARTING_POSITION_HPP_INCLUDED
00018 
00019 #include "gui/dialogs/dialog.hpp"
00020 
00021 #include <vector>
00022 
00023 struct map_location;
00024 
00025 namespace gui2 {
00026 
00027 class teditor_set_starting_position : public tdialog
00028 {
00029 public:
00030     teditor_set_starting_position(unsigned current_player, unsigned maximum_players, const std::vector<map_location>& starting_positions);
00031 
00032     unsigned result() const { return selection_; }
00033 
00034 private:
00035     unsigned players_, selection_;
00036     std::vector<map_location> starting_positions_;
00037 
00038     /** Inherited from tdialog, implemented by REGISTER_DIALOG. */
00039     virtual const std::string& window_id() const;
00040 
00041     /** Inherited from tdialog. */
00042     void pre_show(CVideo& video, twindow& window);
00043 
00044     /** Inherited from tdialog. */
00045     void post_show(twindow& window);
00046 };
00047 
00048 }
00049 
00050 #endif /* ! GUI_DIALOGS_EDITOR_SET_STARTING_POSITION_HPP_INCLUDED */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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