#include "reports.hpp"
#include "actions/attack.hpp"
#include "attack_prediction.hpp"
#include "color.hpp"
#include "desktop/battery_info.hpp"
#include "font/pango/escape.hpp"
#include "formatter.hpp"
#include "formula/string_utils.hpp"
#include "gettext.hpp"
#include "language.hpp"
#include "map/map.hpp"
#include "mouse_events.hpp"
#include "pathfind/pathfind.hpp"
#include "picture.hpp"
#include "preferences/preferences.hpp"
#include "serialization/markup.hpp"
#include "team.hpp"
#include "terrain/movement.hpp"
#include "tod_manager.hpp"
#include "units/unit.hpp"
#include "units/helper.hpp"
#include "units/types.hpp"
#include "units/unit_alignments.hpp"
#include "whiteboard/manager.hpp"
#include <ctime>
#include <iomanip>
#include <boost/format.hpp>
Go to the source code of this file.
Classes | |
struct | report_generator_helper |
Macros | |
#define | REPORT_GENERATOR(n, cn) |
Typedefs | |
typedef std::map< std::string, reports::generator_function > | static_report_generators |
Functions | |
static void | add_text (config &report, const std::string &text, const std::string &tooltip, const std::string &help="") |
static void | add_image (config &report, const std::string &image, const std::string &tooltip, const std::string &help="") |
static config | text_report (const std::string &text, const std::string &tooltip="", const std::string &help="") |
static config | image_report (const std::string &image, const std::string &tooltip="", const std::string &help="") |
static void | add_status (config &r, const std::string &path, char const *desc1, char const *desc2) |
static std::string | flush (std::ostringstream &s) |
static const time_of_day | get_visible_time_of_day_at (const reports::context &rc, const map_location &hex) |
static const unit * | get_visible_unit (const reports::context &rc) |
static const unit * | get_selected_unit (const reports::context &rc) |
static unit_const_ptr | get_selected_unit_ptr (const reports::context &rc) |
static config | gray_inactive (const reports::context &rc, const std::string &str, const std::string &tooltip="") |
static config | unit_name (const unit *u) |
REPORT_GENERATOR (unit_name, rc) | |
REPORT_GENERATOR (selected_unit_name, rc) | |
static config | unit_type (const unit *u) |
REPORT_GENERATOR (unit_type, rc) | |
REPORT_GENERATOR (selected_unit_type, rc) | |
static config | unit_race (const unit *u) |
REPORT_GENERATOR (unit_race, rc) | |
REPORT_GENERATOR (selected_unit_race, rc) | |
static std::string | side_tooltip (const team &team) |
static config | unit_side (const reports::context &rc, const unit *u) |
REPORT_GENERATOR (unit_side, rc) | |
REPORT_GENERATOR (selected_unit_side, rc) | |
static config | unit_level (const unit *u) |
REPORT_GENERATOR (unit_level, rc) | |
REPORT_GENERATOR (selected_unit_level, rc) | |
REPORT_GENERATOR (unit_amla, rc) | |
static config | unit_traits (const unit *u) |
REPORT_GENERATOR (unit_traits, rc) | |
REPORT_GENERATOR (selected_unit_traits, rc) | |
static config | unit_status (const reports::context &rc, const unit *u) |
REPORT_GENERATOR (unit_status, rc) | |
REPORT_GENERATOR (selected_unit_status, rc) | |
static config | unit_alignment (const reports::context &rc, const unit *u, const map_location &hex) |
REPORT_GENERATOR (unit_alignment, rc) | |
REPORT_GENERATOR (selected_unit_alignment, rc) | |
static config | unit_abilities (const unit *u, const map_location &loc) |
REPORT_GENERATOR (unit_abilities, rc) | |
REPORT_GENERATOR (selected_unit_abilities, rc) | |
static config | unit_hp (const reports::context &rc, const unit *u) |
REPORT_GENERATOR (unit_hp, rc) | |
REPORT_GENERATOR (selected_unit_hp, rc) | |
static config | unit_xp (const unit *u) |
REPORT_GENERATOR (unit_xp, rc) | |
REPORT_GENERATOR (selected_unit_xp, rc) | |
static config | unit_advancement_options (const unit *u) |
REPORT_GENERATOR (unit_advancement_options, rc) | |
REPORT_GENERATOR (selected_unit_advancement_options, rc) | |
static config | unit_defense (const reports::context &rc, const unit *u, const map_location &displayed_unit_hex) |
REPORT_GENERATOR (unit_defense, rc) | |
REPORT_GENERATOR (selected_unit_defense, rc) | |
static config | unit_vision (const unit *u) |
REPORT_GENERATOR (unit_vision, rc) | |
REPORT_GENERATOR (selected_unit_vision, rc) | |
static config | unit_moves (const reports::context &rc, const unit *u, bool is_visible_unit) |
REPORT_GENERATOR (unit_moves, rc) | |
REPORT_GENERATOR (selected_unit_moves, rc) | |
static const color_t | attack_info_percent_color (int resistance) |
Maps resistance <= -60 (resistance value <= -60%) to intense red. More... | |
static int | attack_info (const reports::context &rc, const attack_type &at, config &res, const unit &u, const map_location &hex, const unit *sec_u=nullptr, const_attack_ptr sec_u_weapon=nullptr) |
static std::string | format_prob (double prob) |
static std::string | format_hp (unsigned hp) |
static config | unit_weapons (const reports::context &rc, unit_const_ptr attacker, const map_location &attacker_pos, const unit *defender, bool show_attacker) |
static config | unit_weapons (const reports::context &rc, const unit *u, const map_location &hex) |
REPORT_GENERATOR (unit_weapons, rc) | |
REPORT_GENERATOR (highlighted_unit_weapons, rc) | |
REPORT_GENERATOR (selected_unit_weapons, rc) | |
REPORT_GENERATOR (unit_image, rc) | |
REPORT_GENERATOR (selected_unit_image, rc) | |
REPORT_GENERATOR (selected_unit_profile, rc) | |
REPORT_GENERATOR (unit_profile, rc) | |
static config | tod_stats_at (const reports::context &rc, const map_location &hex) |
REPORT_GENERATOR (tod_stats, rc) | |
REPORT_GENERATOR (selected_tod_stats, rc) | |
static config | time_of_day_at (const reports::context &rc, const map_location &mouseover_hex) |
REPORT_GENERATOR (time_of_day, rc) | |
REPORT_GENERATOR (selected_time_of_day, rc) | |
static config | unit_box_at (const reports::context &rc, const map_location &mouseover_hex) |
REPORT_GENERATOR (unit_box, rc) | |
REPORT_GENERATOR (turn, rc) | |
REPORT_GENERATOR (gold, rc) | |
REPORT_GENERATOR (villages, rc) | |
REPORT_GENERATOR (num_units, rc) | |
REPORT_GENERATOR (upkeep, rc) | |
REPORT_GENERATOR (expenses, rc) | |
REPORT_GENERATOR (income, rc) | |
REPORT_GENERATOR (terrain_info, rc) | |
REPORT_GENERATOR (terrain, rc) | |
REPORT_GENERATOR (zoom_level, rc) | |
REPORT_GENERATOR (position, rc) | |
REPORT_GENERATOR (side_playing, rc) | |
REPORT_GENERATOR (observers, rc) | |
REPORT_GENERATOR (report_clock,) | |
REPORT_GENERATOR (battery,) | |
REPORT_GENERATOR (report_countdown, rc) | |
Variables | |
static static_report_generators | static_generators |
#define REPORT_GENERATOR | ( | n, | |
cn | |||
) |
Definition at line 126 of file reports.cpp.
typedef std::map<std::string, reports::generator_function> static_report_generators |
Definition at line 115 of file reports.cpp.
|
static |
Definition at line 59 of file reports.cpp.
References config::add_child(), and tooltip.
Referenced by add_status(), attack_info(), image_report(), REPORT_GENERATOR(), unit_advancement_options(), and unit_side().
|
static |
Definition at line 86 of file reports.cpp.
References add_image(), translation::gettext(), game_config::path, and s.
Referenced by unit_status().
|
static |
Definition at line 50 of file reports.cpp.
References config::add_child(), and tooltip.
Referenced by attack_info(), REPORT_GENERATOR(), text_report(), unit_abilities(), unit_side(), unit_traits(), and unit_weapons().
|
static |
Definition at line 771 of file reports.cpp.
References _(), add_image(), add_text(), unit::alignment(), unit_type::alignment_description(), schema_validation::at(), attack_info_percent_color(), font::bad_dmg_color, t_string::base_str(), markup::bold(), combat_modifier(), reports::context::dc(), game_config::debug, enemy, image::exists(), flush(), unit::gender(), unit::get_state(), string_enums::enum_base< Definition >::get_string(), display_context::get_team(), get_visible_time_of_day_at(), font::good_dmg_color, unit::hitpoints(), i, font::inactive_details_color, team::is_enemy(), unit::is_fearless(), markup::italic(), utils::join(), unit::max_hitpoints(), display::playing_team(), round_damage(), reports::context::screen(), display::show_everything(), team::side(), unit::side(), utils::signed_percent(), utils::signed_value(), game_config::sounds::status::slowed, markup::span_color(), unit::STATE_SLOWED, string_table, swarm_blows(), tooltip, under_leadership(), font::unicode_bullet, reports::context::units(), display::viewing_team(), font::weapon_color, font::weapon_details_color, font::weapon_details_sep, and font::weapon_numbers_sep.
Referenced by unit_weapons().
|
inlinestatic |
Maps resistance <= -60 (resistance value <= -60%) to intense red.
Maps resistance >= 60 (resistance value >= 60%) to intense green. Intermediate values are affinely mapped to the red-to-green scale, with 0 (0%) being mapped to yellow. Compare unit_helper::resistance_color().
Definition at line 765 of file reports.cpp.
References game_config::red_to_green().
Referenced by attack_info().
|
static |
Definition at line 94 of file reports.cpp.
References s.
Referenced by attack_info(), lua_kernel_base::get_log(), intf_object_dir(), gui2::dialogs::lua_interpreter::lua_model::lua_model(), and unit_weapons().
|
static |
Definition at line 1046 of file reports.cpp.
Referenced by unit_weapons().
|
static |
Definition at line 1034 of file reports.cpp.
Referenced by unit_weapons().
|
static |
Definition at line 138 of file reports.cpp.
References reports::context::dc(), display_context::get_visible_unit(), reports::context::screen(), display::selected_hex(), display::show_everything(), and display::viewing_team().
Referenced by REPORT_GENERATOR().
|
static |
Definition at line 145 of file reports.cpp.
References reports::context::dc(), display_context::get_visible_unit_shared_ptr(), reports::context::screen(), display::selected_hex(), display::show_everything(), and display::viewing_team().
Referenced by REPORT_GENERATOR().
|
static |
Definition at line 101 of file reports.cpp.
References team::fogged(), tod_manager::get_illuminated_time_of_day(), tod_manager::get_time_of_day(), reports::context::map(), reports::context::screen(), team::shrouded(), reports::context::tod(), reports::context::units(), and display::viewing_team().
Referenced by attack_info(), time_of_day_at(), unit_alignment(), and unit_box_at().
|
static |
Definition at line 131 of file reports.cpp.
References reports::context::dc(), display::displayed_unit_hex(), display_context::get_visible_unit(), reports::context::screen(), display::show_everything(), and display::viewing_team().
Referenced by REPORT_GENERATOR(), and unit_box_at().
|
static |
Definition at line 152 of file reports.cpp.
References font::GRAY_COLOR, reports::context::screen(), markup::span_color(), text_report(), tooltip, and display::viewing_team_is_playing().
Referenced by REPORT_GENERATOR().
|
static |
Definition at line 76 of file reports.cpp.
References add_image(), and tooltip.
Referenced by REPORT_GENERATOR(), time_of_day_at(), and unit_box_at().
REPORT_GENERATOR | ( | battery | ) |
Definition at line 1767 of file reports.cpp.
References _(), add_image(), add_text(), game_config::images::battery_icon, and desktop::battery_info::get_battery_percentage().
REPORT_GENERATOR | ( | expenses | , |
rc | |||
) |
Definition at line 1513 of file reports.cpp.
References team_data::expenses, and gray_inactive().
REPORT_GENERATOR | ( | gold | , |
rc | |||
) |
Definition at line 1460 of file reports.cpp.
References _(), font::BAD_COLOR, team::gold(), font::GRAY_COLOR, utils::half_signed_value(), team::side(), markup::span_color(), and text_report().
REPORT_GENERATOR | ( | highlighted_unit_weapons | , |
rc | |||
) |
Definition at line 1207 of file reports.cpp.
References get_selected_unit_ptr(), get_visible_unit(), unit_weapons(), and map_location::valid().
REPORT_GENERATOR | ( | income | , |
rc | |||
) |
Definition at line 1520 of file reports.cpp.
References _(), font::BAD_COLOR, font::GRAY_COLOR, team_data::net_income, markup::span_color(), text_report(), and font::unicode_minus.
REPORT_GENERATOR | ( | num_units | , |
rc | |||
) |
Definition at line 1499 of file reports.cpp.
References _(), and gray_inactive().
REPORT_GENERATOR | ( | observers | , |
rc | |||
) |
Definition at line 1734 of file reports.cpp.
References _(), image_report(), and game_config::images::observer.
REPORT_GENERATOR | ( | position | , |
rc | |||
) |
Definition at line 1677 of file reports.cpp.
References t_translation::ALL_OFF_MAP, unit::defense_modifier(), get_visible_unit(), unit::movement_cost(), gamemap_base::on_board(), selected_hex, team::shrouded(), t_translation::terrain_matches(), text_report(), and movetype::UNREACHABLE.
REPORT_GENERATOR | ( | report_clock | ) |
Definition at line 1748 of file reports.cpp.
References _(), add_image(), add_text(), prefs::get(), t, game_config::images::time_icon, and prefs::use_twelve_hour_clock_format().
REPORT_GENERATOR | ( | report_countdown | , |
rc | |||
) |
Definition at line 1777 of file reports.cpp.
References _(), add_image(), add_text(), team::countdown_time(), font::GRAY_COLOR, s, markup::span_color(), and game_config::images::time_icon.
REPORT_GENERATOR | ( | selected_time_of_day | , |
rc | |||
) |
Definition at line 1354 of file reports.cpp.
References game_display::get_attack_indicator_src(), unit::get_location(), get_selected_unit(), game_display::get_singleton(), map_location::null_location(), time_of_day_at(), and map_location::valid().
REPORT_GENERATOR | ( | selected_tod_stats | , |
rc | |||
) |
Definition at line 1302 of file reports.cpp.
References game_display::get_attack_indicator_src(), unit::get_location(), get_selected_unit(), game_display::get_singleton(), map_location::null_location(), tod_stats_at(), and map_location::valid().
REPORT_GENERATOR | ( | selected_unit_abilities | , |
rc | |||
) |
Definition at line 460 of file reports.cpp.
References unit::get_location(), get_selected_unit(), get_visible_unit(), unit::id(), team::shrouded(), unit_abilities(), and map_location::valid().
REPORT_GENERATOR | ( | selected_unit_advancement_options | , |
rc | |||
) |
Definition at line 563 of file reports.cpp.
References get_selected_unit(), and unit_advancement_options().
REPORT_GENERATOR | ( | selected_unit_alignment | , |
rc | |||
) |
Definition at line 404 of file reports.cpp.
References game_display::get_attack_indicator_src(), unit::get_location(), get_selected_unit(), game_display::get_singleton(), unit_alignment(), and map_location::valid().
REPORT_GENERATOR | ( | selected_unit_defense | , |
rc | |||
) |
Definition at line 620 of file reports.cpp.
References game_display::get_attack_indicator_src(), unit::get_location(), get_selected_unit(), game_display::get_singleton(), get_visible_unit(), unit::id(), unit_defense(), and map_location::valid().
REPORT_GENERATOR | ( | selected_unit_hp | , |
rc | |||
) |
Definition at line 518 of file reports.cpp.
References get_selected_unit(), and unit_hp().
REPORT_GENERATOR | ( | selected_unit_image | , |
rc | |||
) |
Definition at line 1251 of file reports.cpp.
References unit::absolute_image(), get_selected_unit(), unit::image_mods(), and image_report().
REPORT_GENERATOR | ( | selected_unit_level | , |
rc | |||
) |
Definition at line 286 of file reports.cpp.
References get_selected_unit(), and unit_level().
REPORT_GENERATOR | ( | selected_unit_moves | , |
rc | |||
) |
Definition at line 752 of file reports.cpp.
References get_selected_unit(), and unit_moves().
REPORT_GENERATOR | ( | selected_unit_name | , |
rc | |||
) |
Definition at line 182 of file reports.cpp.
References get_selected_unit(), and unit_name().
REPORT_GENERATOR | ( | selected_unit_profile | , |
rc | |||
) |
Definition at line 1258 of file reports.cpp.
References get_selected_unit(), image_report(), and unit::small_profile().
REPORT_GENERATOR | ( | selected_unit_race | , |
rc | |||
) |
Definition at line 228 of file reports.cpp.
References get_selected_unit(), and unit_race().
REPORT_GENERATOR | ( | selected_unit_side | , |
rc | |||
) |
Definition at line 270 of file reports.cpp.
References get_selected_unit(), and unit_side().
REPORT_GENERATOR | ( | selected_unit_status | , |
rc | |||
) |
Definition at line 370 of file reports.cpp.
References get_selected_unit(), and unit_status().
REPORT_GENERATOR | ( | selected_unit_traits | , |
rc | |||
) |
Definition at line 328 of file reports.cpp.
References get_selected_unit(), and unit_traits().
REPORT_GENERATOR | ( | selected_unit_type | , |
rc | |||
) |
Definition at line 209 of file reports.cpp.
References get_selected_unit(), and unit_type().
REPORT_GENERATOR | ( | selected_unit_vision | , |
rc | |||
) |
Definition at line 657 of file reports.cpp.
References get_selected_unit(), and unit_vision().
REPORT_GENERATOR | ( | selected_unit_weapons | , |
rc | |||
) |
Definition at line 1226 of file reports.cpp.
References get_selected_unit_ptr(), get_visible_unit(), unit_weapons(), and map_location::valid().
REPORT_GENERATOR | ( | selected_unit_xp | , |
rc | |||
) |
Definition at line 543 of file reports.cpp.
References get_selected_unit(), and unit_xp().
REPORT_GENERATOR | ( | side_playing | , |
rc | |||
) |
Definition at line 1721 of file reports.cpp.
References game_config::images::flag_icon, team::flag_icon(), game_config::flag_rgb, team::get_side_color_id(), image_report(), and side_tooltip().
REPORT_GENERATOR | ( | terrain | , |
rc | |||
) |
Definition at line 1629 of file reports.cpp.
References t_translation::ALL_OFF_MAP, team::fogged(), gamemap_base::get_terrain(), gamemap::get_terrain_info(), gamemap::get_terrain_string(), gamemap::get_underlying_terrain_string(), terrain_type::income_description(), terrain_type::income_description_ally(), terrain_type::income_description_enemy(), terrain_type::income_description_own(), team::is_enemy(), gamemap::is_village(), gamemap_base::on_board(), team::shrouded(), team::side(), t_translation::terrain_matches(), and text_report().
REPORT_GENERATOR | ( | terrain_info | , |
rc | |||
) |
Definition at line 1552 of file reports.cpp.
References add_image(), add_text(), t_translation::ALL_OFF_MAP, game_config::images::flag_icon, team::flag_icon(), game_config::flag_rgb, team::fogged(), team::get_side_color_id(), display::get_singleton(), gamemap_base::get_terrain(), gamemap::get_terrain_info(), gamemap::get_terrain_string(), terrain_type::icon_image(), terrain_type::id(), gamemap::is_village(), gamemap_base::on_board(), team::side(), side_tooltip(), t_translation::terrain_matches(), tooltip, and gamemap::underlying_union_terrain().
REPORT_GENERATOR | ( | time_of_day | , |
rc | |||
) |
Definition at line 1348 of file reports.cpp.
References time_of_day_at(), and map_location::valid().
REPORT_GENERATOR | ( | tod_stats | , |
rc | |||
) |
Definition at line 1296 of file reports.cpp.
References tod_stats_at(), and map_location::valid().
REPORT_GENERATOR | ( | turn | , |
rc | |||
) |
Definition at line 1446 of file reports.cpp.
References _(), text_report(), and tooltip.
REPORT_GENERATOR | ( | unit_abilities | , |
rc | |||
) |
Definition at line 450 of file reports.cpp.
References get_visible_unit(), team::shrouded(), unit_abilities(), and map_location::valid().
REPORT_GENERATOR | ( | unit_advancement_options | , |
rc | |||
) |
Definition at line 558 of file reports.cpp.
References get_visible_unit(), and unit_advancement_options().
REPORT_GENERATOR | ( | unit_alignment | , |
rc | |||
) |
Definition at line 396 of file reports.cpp.
References get_visible_unit(), unit_alignment(), and map_location::valid().
REPORT_GENERATOR | ( | unit_amla | , |
rc | |||
) |
Definition at line 292 of file reports.cpp.
References add_image(), unit::amla_icons(), and get_visible_unit().
REPORT_GENERATOR | ( | unit_box | , |
rc | |||
) |
Definition at line 1439 of file reports.cpp.
References unit_box_at().
REPORT_GENERATOR | ( | unit_defense | , |
rc | |||
) |
Definition at line 611 of file reports.cpp.
References get_visible_unit(), team::shrouded(), unit_defense(), and map_location::valid().
REPORT_GENERATOR | ( | unit_hp | , |
rc | |||
) |
Definition at line 513 of file reports.cpp.
References get_visible_unit(), and unit_hp().
REPORT_GENERATOR | ( | unit_image | , |
rc | |||
) |
Definition at line 1245 of file reports.cpp.
References unit::absolute_image(), get_visible_unit(), unit::image_mods(), and image_report().
REPORT_GENERATOR | ( | unit_level | , |
rc | |||
) |
Definition at line 281 of file reports.cpp.
References get_visible_unit(), and unit_level().
REPORT_GENERATOR | ( | unit_moves | , |
rc | |||
) |
Definition at line 747 of file reports.cpp.
References get_visible_unit(), and unit_moves().
REPORT_GENERATOR | ( | unit_name | , |
rc | |||
) |
Definition at line 177 of file reports.cpp.
References get_visible_unit(), and unit_name().
REPORT_GENERATOR | ( | unit_profile | , |
rc | |||
) |
Definition at line 1264 of file reports.cpp.
References get_visible_unit(), image_report(), and unit::small_profile().
REPORT_GENERATOR | ( | unit_race | , |
rc | |||
) |
Definition at line 223 of file reports.cpp.
References get_visible_unit(), and unit_race().
REPORT_GENERATOR | ( | unit_side | , |
rc | |||
) |
Definition at line 265 of file reports.cpp.
References get_visible_unit(), and unit_side().
REPORT_GENERATOR | ( | unit_status | , |
rc | |||
) |
Definition at line 365 of file reports.cpp.
References get_visible_unit(), and unit_status().
REPORT_GENERATOR | ( | unit_traits | , |
rc | |||
) |
Definition at line 323 of file reports.cpp.
References get_visible_unit(), and unit_traits().
REPORT_GENERATOR | ( | unit_type | , |
rc | |||
) |
Definition at line 204 of file reports.cpp.
References get_visible_unit(), and unit_type().
REPORT_GENERATOR | ( | unit_vision | , |
rc | |||
) |
Definition at line 652 of file reports.cpp.
References get_visible_unit(), and unit_vision().
REPORT_GENERATOR | ( | unit_weapons | , |
rc | |||
) |
Definition at line 1197 of file reports.cpp.
References get_visible_unit(), unit_weapons(), and map_location::valid().
REPORT_GENERATOR | ( | unit_xp | , |
rc | |||
) |
Definition at line 538 of file reports.cpp.
References get_visible_unit(), and unit_xp().
REPORT_GENERATOR | ( | upkeep | , |
rc | |||
) |
Definition at line 1504 of file reports.cpp.
References _(), team_data::expenses, gray_inactive(), and team_data::upkeep.
REPORT_GENERATOR | ( | villages | , |
rc | |||
) |
Definition at line 1481 of file reports.cpp.
References _(), gray_inactive(), team::shrouded(), team::uses_shroud(), and team::villages().
REPORT_GENERATOR | ( | zoom_level | , |
rc | |||
) |
Definition at line 1666 of file reports.cpp.
References text_report(), and tooltip.
|
static |
Definition at line 234 of file reports.cpp.
References team::get_side_color_name_for_UI(), team::side(), team::side_name(), and VGETTEXT.
Referenced by REPORT_GENERATOR(), and unit_side().
|
static |
Definition at line 68 of file reports.cpp.
References add_text(), and tooltip.
Referenced by gray_inactive(), REPORT_GENERATOR(), tod_stats_at(), unit_alignment(), unit_defense(), unit_hp(), unit_level(), unit_moves(), unit_name(), unit_race(), unit_type(), unit_vision(), and unit_xp().
|
static |
Definition at line 1312 of file reports.cpp.
References _(), b, markup::bold(), time_of_day::bonus_modified, generic_combat_modifier(), tod_manager::get_max_liminal_bonus(), get_visible_time_of_day_at(), time_of_day::id, time_of_day::image, image_report(), time_of_day::lawful_bonus, time_of_day::name, utils::signed_percent(), markup::span_color(), reports::context::tod(), game_config::images::tod_bright, game_config::images::tod_dark, and tooltip.
Referenced by REPORT_GENERATOR().
|
static |
Definition at line 1271 of file reports.cpp.
References _(), markup::bold(), tod_manager::get_current_time(), display::get_singleton(), i, map_location::null_location(), display::shrouded(), markup::tag(), text_report(), tod_manager::times(), reports::context::tod(), tooltip, and map_location::valid().
Referenced by REPORT_GENERATOR().
|
static |
Definition at line 413 of file reports.cpp.
References _(), unit::ability_tooltips(), add_text(), filesystem::base_name(), markup::bold(), i, id, font::inactive_ability_color, markup::italic(), markup::span_color(), and tooltip.
Referenced by REPORT_GENERATOR().
Definition at line 549 of file reports.cpp.
References add_image(), and unit::advancement_icons().
Referenced by REPORT_GENERATOR().
|
static |
Definition at line 376 of file reports.cpp.
References _(), unit::alignment(), unit_type::alignment_description(), font::bad_dmg_color, markup::bold(), combat_modifier(), unit::gender(), string_enums::enum_base< Definition >::get_string(), get_visible_time_of_day_at(), font::good_dmg_color, unit::is_fearless(), utils::signed_percent(), markup::span_color(), string_table, text_report(), tooltip, and font::weapon_color.
Referenced by REPORT_GENERATOR().
|
static |
Definition at line 1364 of file reports.cpp.
References _(), unit::absolute_image(), time_of_day::bonus_modified, time_of_day::color, generic_combat_modifier(), tod_manager::get_max_liminal_bonus(), gamemap_base::get_terrain(), gamemap::get_terrain_info(), tod_manager::get_time_of_day(), get_visible_time_of_day_at(), get_visible_unit(), terrain_type::id(), time_of_day::image, unit::image_mods(), image_report(), time_of_day::lawful_bonus, reports::context::map(), time_of_day::name, utils::signed_percent(), markup::span_color(), reports::context::tod(), game_config::images::tod_bright, game_config::images::tod_dark, tooltip, and gamemap::underlying_union_terrain().
Referenced by REPORT_GENERATOR().
|
static |
Definition at line 569 of file reports.cpp.
References _(), markup::bold(), unit::defense_modifier(), terrain_type::description(), gamemap::get_terrain_info(), reports::context::map(), t_translation::MINUS, gamemap_base::on_board(), t_translation::PLUS, game_config::red_to_green(), unit_type::show_variations_in_help(), markup::span_color(), t, text_report(), tooltip, unit::type(), unit::type_id(), and gamemap::underlying_def_terrain().
Referenced by REPORT_GENERATOR().
|
static |
Definition at line 475 of file reports.cpp.
References _(), display::displayed_unit_hex(), unit::get_base_resistances(), translation::gettext(), unit::hitpoints(), unit::hp_color(), draw::line(), unit::max_hitpoints(), unit::resistance_against(), unit_helper::resistance_color(), reports::context::screen(), utils::signed_percent(), markup::span_color(), text_report(), and tooltip.
Referenced by REPORT_GENERATOR().
Definition at line 276 of file reports.cpp.
References unit::level(), text_report(), and unit_helper::unit_level_tooltip().
Referenced by REPORT_GENERATOR().
|
static |
Definition at line 663 of file reports.cpp.
References _(), t_translation::ALL_OFF_MAP, c, t_translation::FOGGED, prefs::get(), game_display::get_route(), game_display::get_singleton(), gamemap::get_terrain_info(), i, lg::info(), reports::context::map(), pathfind::marked_route::marks, pathfind::marked_route::move_cost, unit::movement_cost(), unit::movement_left(), display::playing_team(), game_config::red_to_green(), reports::context::screen(), team::side(), unit::side(), markup::span_color(), pathfind::marked_route::steps, t_translation::terrain_matches(), text_report(), tooltip, unit::total_movement(), font::unicode_figure_dash, and t_translation::VOID_TERRAIN.
Referenced by wfl::ai_function_symbol_table::ai_function_symbol_table(), ai::formula_ai::can_reach_unit(), and REPORT_GENERATOR().
Definition at line 160 of file reports.cpp.
References _(), markup::bold(), font::escape_text(), unit::name(), text_report(), and tooltip.
Referenced by ai::ai_recruit(), ai::readonly_context_proxy::check_recruit_action(), ai::readonly_context_impl::check_recruit_action(), events::menu_handler::do_search(), ai::readwrite_context_proxy::execute_recruit_action(), ai::readwrite_context_impl::execute_recruit_action(), ai::actions::execute_recruit_action(), wb::side_actions::queue_recruit(), REPORT_GENERATOR(), and gui2::dialogs::editor_edit_unit::write().
Definition at line 215 of file reports.cpp.
References _(), markup::bold(), unit::gender(), unit_race::id(), unit_race::name(), unit::race(), text_report(), and tooltip.
Referenced by REPORT_GENERATOR().
|
static |
Definition at line 244 of file reports.cpp.
References add_image(), add_text(), team::color(), reports::context::dc(), game_config::images::flag_icon, team::flag_icon(), game_config::flag_rgb, display_context::get_team(), unit::side(), side_tooltip(), and tooltip.
Referenced by REPORT_GENERATOR().
|
static |
Definition at line 334 of file reports.cpp.
References add_status(), display::displayed_unit_hex(), unit::get_state(), unit::invisible(), reports::context::map(), N_, gamemap_base::on_board(), reports::context::screen(), unit::STATE_INVULNERABLE, unit::STATE_PETRIFIED, unit::STATE_POISONED, unit::STATE_SLOWED, and unit::STATE_UNHEALABLE.
Referenced by REPORT_GENERATOR().
Definition at line 304 of file reports.cpp.
References _(), add_text(), markup::bold(), i, tooltip, unit::trait_descriptions(), unit::trait_names(), and unit::trait_nonhidden_ids().
Referenced by REPORT_GENERATOR().
Definition at line 188 of file reports.cpp.
References _(), markup::bold(), unit_type::show_variations_in_help(), text_report(), tooltip, unit::type(), unit::type_id(), unit::type_name(), font::unicode_bullet, unit::unit_description(), and unit::unit_special_notes().
Referenced by actions::check_recruit_location(), and REPORT_GENERATOR().
Definition at line 635 of file reports.cpp.
References _(), unit::jamming(), text_report(), tooltip, unit::total_movement(), and unit::vision().
Referenced by REPORT_GENERATOR().
|
static |
Definition at line 1172 of file reports.cpp.
References _(), _n(), add_text(), schema_validation::at(), attack_info(), unit::attacks(), unit::attacks_left(), draw::line(), unit::max_attacks(), markup::span_color(), VGETTEXT, and font::weapon_details_color.
|
static |
Definition at line 1053 of file reports.cpp.
References _(), add_text(), attack_info(), font::bad_dmg_color, game_config::blue_to_white(), markup::bold(), c, battle_context_unit_stats::chance_to_hit, battle_context_unit_stats::damage, combatant::fight(), flush(), format_hp(), format_prob(), unit::get_location(), font::good_dmg_color, unit::hp_color(), i, battle_context_unit_stats::num_blows, game_config::red_to_green(), utf8::size(), markup::span_color(), tooltip, font::unicode_en_dash, reports::context::units(), battle_context_unit_stats::weapon, font::weapon_color, font::weapon_details_color, and font::weapon_numbers_sep.
Referenced by REPORT_GENERATOR().
Definition at line 524 of file reports.cpp.
References _(), unit::can_advance(), unit::experience(), unit_experience_accelerator::get_acceleration(), unit::max_experience(), markup::span_color(), text_report(), tooltip, font::unicode_en_dash, and unit::xp_color().
Referenced by REPORT_GENERATOR(), and gui2::unit_preview_pane::set_displayed_unit().
|
static |
Definition at line 116 of file reports.cpp.
Referenced by reports::generate_report(), report_generator_helper::report_generator_helper(), and reports::report_list().