The Battle for Wesnoth  1.19.7+dev
Public Member Functions | List of all members
help::help_manager Struct Reference

The help implementation caches data parsed from the game_config. More...

#include <help.hpp>

Public Member Functions

 help_manager (const game_config_view *game_config)
 
 help_manager (const help_manager &)=delete
 
help_manageroperator= (const help_manager &)=delete
 
 ~help_manager ()
 

Detailed Description

The help implementation caches data parsed from the game_config.

This class is used to control the lifecycle of that cache, so that the cache will be cleared before the game_config itself changes.

Note: it's okay to call any of the help::show_* functions without creating an instance of help_manager - that will simply mean that the cache is cleared before the show function returns.

Creating two instances of this will cause an assert.

Definition at line 39 of file help.hpp.

Constructor & Destructor Documentation

◆ help_manager() [1/2]

help::help_manager::help_manager ( const game_config_view game_config)

Definition at line 107 of file help.cpp.

References help::game_cfg.

◆ help_manager() [2/2]

help::help_manager::help_manager ( const help_manager )
delete

◆ ~help_manager()

help::help_manager::~help_manager ( )

Member Function Documentation

◆ operator=()

help_manager& help::help_manager::operator= ( const help_manager )
delete

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