The Battle for Wesnoth  1.19.5+dev
Classes | Namespaces | Macros | Functions
statistics_dialog.cpp File Reference
#include "gui/dialogs/statistics_dialog.hpp"
#include "actions/attack.hpp"
#include "font/constants.hpp"
#include "serialization/markup.hpp"
#include "formatter.hpp"
#include "formula/string_utils.hpp"
#include "gettext.hpp"
#include "gui/widgets/label.hpp"
#include "gui/widgets/listbox.hpp"
#include "gui/widgets/menu_button.hpp"
#include "gui/widgets/window.hpp"
#include "team.hpp"
#include "units/types.hpp"
#include <functional>
#include <iomanip>
#include <memory>
Include dependency graph for statistics_dialog.cpp:

Go to the source code of this file.

Classes

struct  gui2::dialogs::hitrate_table_element
 

Namespaces

 gui2
 Generic file dialog.
 
 gui2::dialogs
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-lib"
 

Functions

static std::string get_probability_string (const double prob)
 
static std::ostream & gui2::dialogs::write_actual_and_expected (std::ostream &str, const long long actual, const double expected)
 
static hitrate_table_element gui2::dialogs::tally (const statistics_t::stats::hitrate_map &by_cth, const bool more_is_better)
 

Macro Definition Documentation

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 15 of file statistics_dialog.cpp.

Function Documentation

◆ get_probability_string()

static std::string get_probability_string ( const double  prob)
static

Definition at line 37 of file statistics_dialog.cpp.