The Battle for Wesnoth  1.19.5+dev
Public Member Functions | Private Attributes | List of all members
help::unit_topic_generator Class Reference

#include <help_topic_generators.hpp>

Inheritance diagram for help::unit_topic_generator:

Public Member Functions

 unit_topic_generator (const unit_type &t, std::string variation="")
 
virtual std::string operator() () const
 
- Public Member Functions inherited from help::topic_generator
 topic_generator ()=default
 
virtual ~topic_generator ()
 

Private Attributes

const unit_typetype_
 
const std::string variation_
 

Detailed Description

Definition at line 40 of file help_topic_generators.hpp.

Constructor & Destructor Documentation

◆ unit_topic_generator()

help::unit_topic_generator::unit_topic_generator ( const unit_type t,
std::string  variation = "" 
)
inline

Definition at line 45 of file help_topic_generators.hpp.

Member Function Documentation

◆ operator()()

std::string help::unit_topic_generator::operator() ( ) const
virtual

Implements help::topic_generator.

Definition at line 330 of file help_topic_generators.cpp.

References _(), unit_type::abilities_metadata(), help::ability_prefix, unit_type::adv_abilities_metadata(), unit_type::advances_from(), unit_type::advances_to(), unit_type::alignment(), unit_type::alignment_description(), t_translation::ALL_OFF_MAP, unit_type::attacks(), unit_type::big_profile(), markup::bold(), unit_type_data::build_unit_type(), unit_type::can_advance(), movetype::terrain_defense::capped(), unit_type::cost(), movetype::damage_table(), movetype::defense_modifier(), help::description_type(), movetype::effects, unit_type::experience_needed(), unit_race::FEMALE, unit_type_data::find(), unit_type::flag_rgb(), t_translation::FOGGED, help::format_mp_entry(), unit_type::FULL, help::FULL_DESCRIPTION, video::game_canvas_size(), unit_type::genders(), prefs::get(), unit_type::get_cfg(), movetype::get_defense(), unit_type::get_gender_unit_type(), unit_type::get_variation(), translation::gettext(), unit_type::has_gender_variation(), movetype::has_jamming_data(), movetype::has_terrain_defense_caps(), movetype::has_vision_data(), unit_type::HELP_INDEXED, unit_type::hitpoints(), i, unit_type::id(), unit_type::image(), markup::img(), lg::info(), markup::italic(), unit_type::jamming(), movetype::jamming_cost(), unit_type::level(), help::load_terrain_types_data(), markup::make_link(), unit_race::MALE, movetype::merge(), unit_type::modification_advancements(), unit_type::movement(), movetype::movement_cost(), unit_type::movement_type(), font::nbsp, unit_type::num_traits(), unit_race::plural_name(), unit_type::possible_traits(), help::print_trait_list(), unit_type::race(), unit_type::race_id(), game_config::red_to_green(), unit_helper::resistance_color(), gui2::settings::screen_width, unit_type::show_variations_in_help(), unit_type::small_profile(), markup::span_color(), unit_type::special_notes(), utils::split(), editor::start(), string_table, t, markup::tag(), t_translation::terrain_matches(), type_, unit_type::type_name(), font::unicode_bullet, font::unicode_figure_dash, font::unicode_minus, unit_type::unit_description(), help::unit_prefix, unit_types, help::unknown_unit_topic, variation_, help::variation_prefix, unit_type::variations(), unit_type::vision(), movetype::vision_cost(), t_translation::VOID_TERRAIN, font::weapon_numbers_sep, and WRN_HP.

Member Data Documentation

◆ type_

const unit_type& help::unit_topic_generator::type_
private

Definition at line 42 of file help_topic_generators.hpp.

Referenced by operator()().

◆ variation_

const std::string help::unit_topic_generator::variation_
private

Definition at line 43 of file help_topic_generators.hpp.

Referenced by operator()().


The documentation for this class was generated from the following files: