#include <generic_event.hpp>
Public Member Functions | |
generic_event (const 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 44 of file generic_event.hpp.
events::generic_event::generic_event | ( | const std::string & | name | ) |
Definition at line 22 of file generic_event.cpp.
|
inlinevirtual |
Definition at line 47 of file generic_event.hpp.
|
virtual |
Definition at line 30 of file generic_event.cpp.
References change_handler_, utils::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(), and replay_controller::replay_controller().
|
virtual |
Definition at line 56 of file generic_event.cpp.
References change_handler_, utils::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(), replay_controller::~replay_controller(), and gui2::dialogs::synched_choice_wait::~synched_choice_wait().
|
virtual |
Definition at line 75 of file generic_event.cpp.
References change_handler_, name_, notify_active_, and observers_.
Referenced by 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::scroll(), user_choice_manager::search_in_replay(), theme::set_resolution(), and user_choice_manager::update_local_choice().
|
private |
Definition at line 61 of file generic_event.hpp.
Referenced by attach_handler(), detach_handler(), and notify_observers().
|
private |
Definition at line 54 of file generic_event.hpp.
Referenced by notify_observers().
|
private |
Definition at line 65 of file generic_event.hpp.
Referenced by attach_handler(), detach_handler(), and notify_observers().
|
private |
Definition at line 57 of file generic_event.hpp.
Referenced by attach_handler(), detach_handler(), and notify_observers().