69 void show_help(
const std::string& show_topic=
"");
72 void show_unit_help(
const std::string& unit_id,
bool has_variations=
false,
A class grating read only view to a vector of config objects, viewed as one config with all children ...
A single unit type that the player may recruit.
This class represents a single unit of a specific type.
Game configuration data as global variables.
std::unique_ptr< help_manager > ensure_cache_lifecycle()
Helper function for any of the show_help functions to control the cache's lifecycle; can also be used...
void show_help(const std::string &show_topic)
Open the help browser, show topic with id show_topic.
void show_terrain_description(const terrain_type &t)
void show_terrain_help(const std::string &show_topic, bool hidden)
Open the help browser, show terrain with id terrain_id.
void show_unit_description(const unit &u)
void show_unit_help(const std::string &show_topic, bool has_variations, bool hidden)
Open the help browser, show unit with id unit_id.
void show_variation_help(const std::string &unit, const std::string &variation, bool hidden)
Open the help browser, show the variation of the unit matching.
The help implementation caches data parsed from the game_config.
help_manager & operator=(const help_manager &)=delete
help_manager(const help_manager &)=delete
help_manager(const game_config_view *game_config)