00001 /* $Id: mp_method_selection.hpp 26800 2008-05-23 18:25:20Z mordante $ */ 00002 /* 00003 copyright (c) 2008 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 version 2 00008 or at your option any later version. 00009 this program is distributed in the hope that it will be useful, 00010 but without any warranty. 00011 00012 see the copying file for more details. 00013 */ 00014 00015 #ifndef __GUI_DIALOGS_MP_METHOD_SELECTION_HPP_INCLUDED__ 00016 #define __GUI_DIALOGS_MP_METHOD_SELECTION_HPP_INCLUDED__ 00017 00018 00019 #include <string> 00020 00021 class CVideo; 00022 00023 namespace gui2 { 00024 00025 class tmp_method_selection 00026 { 00027 public: 00028 tmp_method_selection() : 00029 retval_(0), 00030 user_name_(), 00031 choice_(-1) 00032 {} 00033 00034 void show(CVideo& video); 00035 00036 int get_retval() const { return retval_; } 00037 00038 const std::string& user_name() const { return user_name_; } 00039 00040 int get_choice() const { return choice_; } 00041 00042 private: 00043 int retval_; 00044 std::string user_name_; 00045 int choice_; 00046 }; 00047 00048 } // namespace gui2 00049 00050 #endif
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |