#include <generic_event.hpp>
Public Member Functions | |
generic_event (std::string name) | |
virtual | ~generic_event () |
virtual bool | attach_handler (observer *obs) |
virtual bool | detach_handler (observer *obs) |
virtual void | notify_observers () |
Private Attributes | |
std::string | name_ |
std::vector< observer * > | observers_ |
bool | change_handler_ |
bool | notify_active_ |
Definition at line 46 of file generic_event.hpp.
events::generic_event::generic_event | ( | std::string | name | ) |
Definition at line 21 of file generic_event.cpp.
|
inlinevirtual |
Definition at line 49 of file generic_event.hpp.
|
virtual |
Definition at line 29 of file generic_event.cpp.
References change_handler_, gui2::event::find(), notify_active_, and observers_.
Referenced by ai::manager::add_gamestate_observer(), ai::manager::add_map_changed_observer(), ai::manager::add_observer(), ai::manager::add_recruit_list_changed_observer(), ai::manager::add_tod_changed_observer(), ai::manager::add_turn_started_observer(), soundsource::manager::manager(), playmp_controller::playmp_controller(), and replay_controller::replay_controller().
|
virtual |
Definition at line 55 of file generic_event.cpp.
References change_handler_, gui2::event::find(), notify_active_, and observers_.
Referenced by ai::manager::remove_gamestate_observer(), ai::manager::remove_map_changed_observer(), ai::manager::remove_observer(), ai::manager::remove_recruit_list_changed_observer(), ai::manager::remove_tod_changed_observer(), ai::manager::remove_turn_started_observer(), playmp_controller::~playmp_controller(), replay_controller::~replay_controller(), and gui2::tsynced_choice_wait::~tsynced_choice_wait().
|
virtual |
Definition at line 81 of file generic_event.cpp.
References change_handler_, name_, notify_active_, and observers_.
Referenced by turn_info::process_network_data(), ai::manager::raise_gamestate_changed(), ai::manager::raise_map_changed(), ai::manager::raise_recruit_list_changed(), ai::manager::raise_sync_network(), ai::manager::raise_tod_changed(), ai::manager::raise_turn_started(), ai::manager::raise_user_interact(), display::redraw_everything(), display::scroll(), user_choice_manager::search_in_replay(), theme::set_resolution(), and user_choice_manager::update_local_choice().
|
private |
Definition at line 63 of file generic_event.hpp.
Referenced by attach_handler(), detach_handler(), and notify_observers().
|
private |
Definition at line 56 of file generic_event.hpp.
Referenced by notify_observers().
|
private |
Definition at line 67 of file generic_event.hpp.
Referenced by attach_handler(), detach_handler(), and notify_observers().
|
private |
Definition at line 59 of file generic_event.hpp.
Referenced by attach_handler(), detach_handler(), and notify_observers().