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_manager & | operator= (const help_manager &)=delete |
~help_manager () | |
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.
help::help_manager::help_manager | ( | const game_config_view * | game_config | ) |
Definition at line 107 of file help.cpp.
References help::game_cfg.
|
delete |
help::help_manager::~help_manager | ( | ) |
Definition at line 124 of file help.cpp.
References help::section::clear(), help::default_toplevel, help::game_cfg, help::hidden_sections, help::last_num_encountered_terrains, and help::last_num_encountered_units.
|
delete |