37 if(std::all_of(board.
teams().begin(), board.
teams().end(), [](
team&
team) { return team.hidden(); })) {
42 return game_stats(board, viewing_team, selected_side_number).show();
59 virtual const std::string&
window_id()
const override;
Abstract class for exposing game data that doesn't depend on the GUI, however which for historical re...
virtual const std::vector< team > & teams() const override
virtual const std::string & window_id() const override
The ID of the window to build.
game_stats(const display_context &board, const int viewing_team, int &selected_side_number)
static bool execute(game_board &board, const int viewing_team, int &selected_side_number)
unit_const_ptr get_leader(const int side)
const team & viewing_team_
int & selected_side_number_
std::vector< team_data > team_data_
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
virtual void post_show(window &window) override
Actions to be taken after the window has been shown.
const display_context & board_
Abstract base class for all modal dialogs.
base class of top level items, the only item which needs to store the final canvases to draw on.
This class stores all the data for a single 'side' (in game nomenclature).
static std::string _(const char *str)
void show_transient_message(const std::string &title, const std::string &message, const std::string &image, const bool message_use_markup, const bool title_use_markup)
Shows a transient message to the user.
std::shared_ptr< const unit > unit_const_ptr