statistics_dialog.hpp

Go to the documentation of this file.
00001 /* $Id: statistics_dialog.hpp 52533 2012-01-07 02:35:17Z shadowmaster $ */
00002 /*
00003    Copyright (C) 2006 - 2012 by Joerg Hinrichs <joerg.hinrichs@alice-dsl.de>
00004    wesnoth playturn Copyright (C) 2003 by David White <dave@whitevine.net>
00005    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
00006 
00007    This program is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation; either version 2 of the License, or
00010    (at your option) any later version.
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY.
00013 
00014    See the COPYING file for more details.
00015 */
00016 
00017 #ifndef STATISTICS_DIALOG_HPP_INCLUDED
00018 #define STATISTICS_DIALOG_HPP_INCLUDED
00019 
00020 #include "construct_dialog.hpp"
00021 #include "statistics.hpp"
00022 
00023 #include <vector>
00024 #include <string>
00025 
00026 class game_display;
00027 
00028 class statistics_dialog : public gui::dialog
00029 {
00030 public:
00031     statistics_dialog(game_display &disp,
00032         const std::string& title,
00033         const unsigned int team,
00034         const std::string& team_id,
00035         const std::string& player);
00036     ~statistics_dialog();
00037 protected:
00038     void action(gui::dialog_process_info &dp_info);
00039 private:
00040     void make_damage_line(std::vector<std::string>&,const std::string&,const long long&,const long long&,const long long&,const long long&);
00041     gui::dialog_button *detail_btn_;
00042     std::string player_name_;
00043     statistics::stats stats_;
00044     unsigned int team_num_;
00045     std::vector<int> unit_count_;
00046 };
00047 
00048 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:03:10 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs