The Battle for Wesnoth  1.19.1+dev
Public Member Functions | Private 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 Member Functions

void push_header (std::vector< help::item > &row, const std::string &name) const
 

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 46 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 299 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(), 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, help::escape(), unit_type::experience_needed(), unit_race::FEMALE, unit_type_data::find(), unit_type::flag_rgb(), t_translation::FOGGED, unit_type::FULL, help::FULL_DESCRIPTION, video::game_canvas_size(), unit_type::genders(), help::generate_table(), prefs::get(), unit_type::get_cfg(), movetype::get_defense(), unit_type::get_gender_unit_type(), video::get_pixel_scale(), 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(), help::image_width(), lg::info(), unit_type::jamming(), movetype::jamming_cost(), help::jump(), unit_type::level(), help::load_terrain_types_data(), help::make_link(), unit_race::MALE, movetype::merge(), unit_type::modification_advancements(), unit_type::movement(), movetype::movement_cost(), unit_type::movement_type(), font::nbsp, help::normal_font_size, unit_type::num_traits(), font::pango_line_width(), unit_race::plural_name(), unit_type::possible_traits(), help::print_trait_list(), push_header(), help::push_tab_pair(), 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(), unit_type::special_notes(), utils::split(), editor::start(), string_table, t, t_translation::terrain_matches(), color_t::to_hex_string(), 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.

◆ push_header()

void help::unit_topic_generator::push_header ( std::vector< help::item > &  row,
const std::string &  name 
) const
private

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: