69 std::unique_ptr<implementation>
impl_;
79 void show_help(
const std::string& show_topic =
"");
The help implementation caches data parsed from the game_config.
~help_manager()
Defined out-of-line so the implementation class is visible.
std::unique_ptr< implementation > impl_
Pointer-to-implementation to reduce include dependencies.
help_manager & operator=(const help_manager &)=delete
help_manager(const help_manager &)=delete
static std::weak_ptr< help_manager > singleton_
static std::shared_ptr< help_manager > get_instance()
Returns the existing help_manager instance, or a newly allocated object otherwise.
const section & regenerate()
Regenerates the cached help topics if necessary.
help_manager()
Private default constructor.
A single unit type that the player may recruit.
This class represents a single unit of a specific type.
std::string get_unit_type_help_id(const unit_type &t)
Given a unit type, find the corresponding help topic's id.
void show_terrain_description(const terrain_type &t)
void show_unit_description(const unit &u)
void show_help(const std::string &show_topic)
Open the help browser.
Contains the implementation details for lexical_cast and shouldn't be used directly.
A section contains topics and sections along with title and ID.