#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 <boost/format.hpp>
#include <ctime>
#include <iomanip>
#include <utility>
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, const 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 127 of file reports.cpp.
typedef std::map<std::string, reports::generator_function> static_report_generators |
Definition at line 116 of file reports.cpp.
|
static |
Definition at line 60 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 87 of file reports.cpp.
References add_image(), translation::gettext(), game_config::path, and s.
Referenced by unit_status().
|
static |
Definition at line 51 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 772 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(), loc, 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 766 of file reports.cpp.
References game_config::red_to_green().
Referenced by attack_info().
|
static |
Definition at line 95 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 1047 of file reports.cpp.
Referenced by unit_weapons().
|
static |
Definition at line 1035 of file reports.cpp.
Referenced by unit_weapons().
|
static |
Definition at line 139 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 146 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 102 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 132 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 153 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 77 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 1768 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 1514 of file reports.cpp.
References team_data::expenses, and gray_inactive().
REPORT_GENERATOR | ( | gold | , |
rc | |||
) |
Definition at line 1461 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 1208 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 1521 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 1500 of file reports.cpp.
References _(), and gray_inactive().
REPORT_GENERATOR | ( | observers | , |
rc | |||
) |
Definition at line 1735 of file reports.cpp.
References _(), image_report(), and game_config::images::observer.
REPORT_GENERATOR | ( | position | , |
rc | |||
) |
Definition at line 1678 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 1749 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 1778 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 1355 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 1303 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 461 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 564 of file reports.cpp.
References get_selected_unit(), and unit_advancement_options().
REPORT_GENERATOR | ( | selected_unit_alignment | , |
rc | |||
) |
Definition at line 405 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 621 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 519 of file reports.cpp.
References get_selected_unit(), and unit_hp().
REPORT_GENERATOR | ( | selected_unit_image | , |
rc | |||
) |
Definition at line 1252 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 287 of file reports.cpp.
References get_selected_unit(), and unit_level().
REPORT_GENERATOR | ( | selected_unit_moves | , |
rc | |||
) |
Definition at line 753 of file reports.cpp.
References get_selected_unit(), and unit_moves().
REPORT_GENERATOR | ( | selected_unit_name | , |
rc | |||
) |
Definition at line 183 of file reports.cpp.
References get_selected_unit(), and unit_name().
REPORT_GENERATOR | ( | selected_unit_profile | , |
rc | |||
) |
Definition at line 1259 of file reports.cpp.
References get_selected_unit(), image_report(), and unit::small_profile().
REPORT_GENERATOR | ( | selected_unit_race | , |
rc | |||
) |
Definition at line 229 of file reports.cpp.
References get_selected_unit(), and unit_race().
REPORT_GENERATOR | ( | selected_unit_side | , |
rc | |||
) |
Definition at line 271 of file reports.cpp.
References get_selected_unit(), and unit_side().
REPORT_GENERATOR | ( | selected_unit_status | , |
rc | |||
) |
Definition at line 371 of file reports.cpp.
References get_selected_unit(), and unit_status().
REPORT_GENERATOR | ( | selected_unit_traits | , |
rc | |||
) |
Definition at line 329 of file reports.cpp.
References get_selected_unit(), and unit_traits().
REPORT_GENERATOR | ( | selected_unit_type | , |
rc | |||
) |
Definition at line 210 of file reports.cpp.
References get_selected_unit(), and unit_type().
REPORT_GENERATOR | ( | selected_unit_vision | , |
rc | |||
) |
Definition at line 658 of file reports.cpp.
References get_selected_unit(), and unit_vision().
REPORT_GENERATOR | ( | selected_unit_weapons | , |
rc | |||
) |
Definition at line 1227 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 544 of file reports.cpp.
References get_selected_unit(), and unit_xp().
REPORT_GENERATOR | ( | side_playing | , |
rc | |||
) |
Definition at line 1722 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 1630 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 1553 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 1349 of file reports.cpp.
References time_of_day_at(), and map_location::valid().
REPORT_GENERATOR | ( | tod_stats | , |
rc | |||
) |
Definition at line 1297 of file reports.cpp.
References tod_stats_at(), and map_location::valid().
REPORT_GENERATOR | ( | turn | , |
rc | |||
) |
Definition at line 1447 of file reports.cpp.
References _(), text_report(), and tooltip.
REPORT_GENERATOR | ( | unit_abilities | , |
rc | |||
) |
Definition at line 451 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 559 of file reports.cpp.
References get_visible_unit(), and unit_advancement_options().
REPORT_GENERATOR | ( | unit_alignment | , |
rc | |||
) |
Definition at line 397 of file reports.cpp.
References get_visible_unit(), unit_alignment(), and map_location::valid().
REPORT_GENERATOR | ( | unit_amla | , |
rc | |||
) |
Definition at line 293 of file reports.cpp.
References add_image(), unit::amla_icons(), and get_visible_unit().
REPORT_GENERATOR | ( | unit_box | , |
rc | |||
) |
Definition at line 1440 of file reports.cpp.
References unit_box_at().
REPORT_GENERATOR | ( | unit_defense | , |
rc | |||
) |
Definition at line 612 of file reports.cpp.
References get_visible_unit(), team::shrouded(), unit_defense(), and map_location::valid().
REPORT_GENERATOR | ( | unit_hp | , |
rc | |||
) |
Definition at line 514 of file reports.cpp.
References get_visible_unit(), and unit_hp().
REPORT_GENERATOR | ( | unit_image | , |
rc | |||
) |
Definition at line 1246 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 282 of file reports.cpp.
References get_visible_unit(), and unit_level().
REPORT_GENERATOR | ( | unit_moves | , |
rc | |||
) |
Definition at line 748 of file reports.cpp.
References get_visible_unit(), and unit_moves().
REPORT_GENERATOR | ( | unit_name | , |
rc | |||
) |
Definition at line 178 of file reports.cpp.
References get_visible_unit(), and unit_name().
REPORT_GENERATOR | ( | unit_profile | , |
rc | |||
) |
Definition at line 1265 of file reports.cpp.
References get_visible_unit(), image_report(), and unit::small_profile().
REPORT_GENERATOR | ( | unit_race | , |
rc | |||
) |
Definition at line 224 of file reports.cpp.
References get_visible_unit(), and unit_race().
REPORT_GENERATOR | ( | unit_side | , |
rc | |||
) |
Definition at line 266 of file reports.cpp.
References get_visible_unit(), and unit_side().
REPORT_GENERATOR | ( | unit_status | , |
rc | |||
) |
Definition at line 366 of file reports.cpp.
References get_visible_unit(), and unit_status().
REPORT_GENERATOR | ( | unit_traits | , |
rc | |||
) |
Definition at line 324 of file reports.cpp.
References get_visible_unit(), and unit_traits().
REPORT_GENERATOR | ( | unit_type | , |
rc | |||
) |
Definition at line 205 of file reports.cpp.
References get_visible_unit(), and unit_type().
REPORT_GENERATOR | ( | unit_vision | , |
rc | |||
) |
Definition at line 653 of file reports.cpp.
References get_visible_unit(), and unit_vision().
REPORT_GENERATOR | ( | unit_weapons | , |
rc | |||
) |
Definition at line 1198 of file reports.cpp.
References get_visible_unit(), unit_weapons(), and map_location::valid().
REPORT_GENERATOR | ( | unit_xp | , |
rc | |||
) |
Definition at line 539 of file reports.cpp.
References get_visible_unit(), and unit_xp().
REPORT_GENERATOR | ( | upkeep | , |
rc | |||
) |
Definition at line 1505 of file reports.cpp.
References _(), team_data::expenses, gray_inactive(), and team_data::upkeep.
REPORT_GENERATOR | ( | villages | , |
rc | |||
) |
Definition at line 1482 of file reports.cpp.
References _(), gray_inactive(), loc, team::shrouded(), team::uses_shroud(), and team::villages().
REPORT_GENERATOR | ( | zoom_level | , |
rc | |||
) |
Definition at line 1667 of file reports.cpp.
References text_report(), and tooltip.
|
static |
Definition at line 235 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 69 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 1313 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 1272 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 414 of file reports.cpp.
References _(), unit::ability_tooltips(), add_text(), filesystem::base_name(), markup::bold(), i, id, font::inactive_ability_color, markup::italic(), loc, markup::span_color(), and tooltip.
Referenced by REPORT_GENERATOR().
Definition at line 550 of file reports.cpp.
References add_image(), and unit::advancement_icons().
Referenced by REPORT_GENERATOR().
|
static |
Definition at line 377 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 1365 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 570 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 476 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 277 of file reports.cpp.
References unit::level(), text_report(), and unit_helper::unit_level_tooltip().
Referenced by REPORT_GENERATOR().
|
static |
Definition at line 664 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 161 of file reports.cpp.
References _(), markup::bold(), font::escape_text(), unit::name(), t_string::str(), 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 216 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 245 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 335 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 305 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 189 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 636 of file reports.cpp.
References _(), unit::jamming(), text_report(), tooltip, unit::total_movement(), and unit::vision().
Referenced by REPORT_GENERATOR().
|
static |
Definition at line 1173 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 1054 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 525 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_display_data().
|
static |
Definition at line 117 of file reports.cpp.
Referenced by reports::generate_report(), report_generator_helper::report_generator_helper(), and reports::report_list().