Utility class to properly refresh the display when the map context object is replaced without duplicating code. More...

Public Member Functions | |
| map_context_refresher (context_manager &ec, const map_context &other_mc) | |
| ~map_context_refresher () | |
| void | refresh () |
Private Attributes | |
| context_manager & | ec_ |
| bool | size_changed_ |
| bool | refreshed_ |
Utility class to properly refresh the display when the map context object is replaced without duplicating code.
Definition at line 48 of file context_manager.cpp.
| editor::map_context_refresher::map_context_refresher | ( | context_manager & | ec, | |
| const map_context & | other_mc | |||
| ) | [inline] |
Definition at line 51 of file context_manager.cpp.
| editor::map_context_refresher::~map_context_refresher | ( | ) | [inline] |
Definition at line 55 of file context_manager.cpp.
References refresh(), and refreshed_.

| void editor::map_context_refresher::refresh | ( | ) | [inline] |
Definition at line 58 of file context_manager.cpp.
References display::change_map(), display::change_teams(), display::change_units(), ec_, resources::game_map, editor::editor_map::get_game_state(), editor::context_manager::get_map(), editor::editor_map::get_teams(), editor::editor_map::get_time_manager(), editor::editor_map::get_units(), editor::context_manager::gui(), editor::context_manager::reload_map(), resources::state_of_game, resources::teams, resources::tod_manager, and resources::units.
Referenced by ~map_context_refresher().


Definition at line 72 of file context_manager.cpp.
Referenced by refresh().
bool editor::map_context_refresher::refreshed_ [private] |
Definition at line 74 of file context_manager.cpp.
Referenced by ~map_context_refresher().
bool editor::map_context_refresher::size_changed_ [private] |
Definition at line 73 of file context_manager.cpp.
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:19:39 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |