The Battle for Wesnoth  1.15.0+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:
Inheritance graph

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

Member Function Documentation

◆ operator()()

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

Implements help::topic_generator.

Definition at line 249 of file help_topic_generators.cpp.

References _(), help::ability_prefix, t_translation::ALL_OFF_MAP, unit_type::big_profile(), unit_type_data::build_unit_type(), movetype::terrain_defense::capped(), movetype::damage_table(), movetype::defense_modifier(), help::description_type(), movetype::effects, preferences::encountered_terrains(), help::escape(), unit_race::FEMALE, unit_type_data::find(), unit_type::flag_rgb(), t_translation::FOGGED, unit_type::FULL, help::FULL_DESCRIPTION, help::generate_table(), movetype::get_defense(), unit_type::get_gender_unit_type(), CVideo::get_singleton(), unit_type::get_variation(), CVideo::get_width(), translation::gettext(), movetype::has_terrain_defense_caps(), unit_type::HELP_INDEXED, unit_type::hide_help(), terrain_type::hide_if_impassable(), i, terrain_type::id(), unit_type::id(), unit_type::image(), help::image_width(), lg::info(), terrain_type::is_nonnull(), movetype::jamming_cost(), help::jump(), font::line_width(), help::load_terrain_types_data(), help::make_link(), unit_race::MALE, movetype::merge(), movetype::movement_cost(), terrain_type::name(), font::nbsp, next, help::normal_font_size, terrain_type::number(), help::print_trait_list(), help::push_tab_pair(), unit_helper::resistance_color(), reverse(), gui2::settings::screen_width, unit_type::show_variations_in_help(), unit_type::small_profile(), utils::split(), string_table, t, gui2::terrain, t_translation::terrain_matches(), unit_type::type_name(), font::unicode_figure_dash, font::unicode_minus, terrain_type::union_type(), help::unit_prefix, unit_types, help::unknown_unit_topic, unit_type::variation_name(), help::variation_prefix, unit_type::variations(), 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.

◆ variation_

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

Definition at line 43 of file help_topic_generators.hpp.


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