Public Member Functions | |
recruit_situation_change_observer () | |
Observer Code. More... | |
~recruit_situation_change_observer () | |
void | handle_generic_event (const std::string &event) |
bool | recruit_list_changed () |
void | set_recruit_list_changed (bool changed) |
int | gamestate_changed () |
void | reset_gamestate_changed () |
Public Member Functions inherited from events::observer | |
virtual | ~observer () |
Private Attributes | |
bool | recruit_list_changed_ |
int | gamestate_changed_ |
Definition at line 237 of file recruitment.hpp.
ai::default_recruitment::recruitment::recruit_situation_change_observer::recruit_situation_change_observer | ( | ) |
Observer Code.
Definition at line 1779 of file recruitment.cpp.
References ai::manager::add_gamestate_observer(), ai::manager::add_recruit_list_changed_observer(), and ai::manager::get_singleton().
ai::default_recruitment::recruitment::recruit_situation_change_observer::~recruit_situation_change_observer | ( | ) |
Definition at line 1795 of file recruitment.cpp.
References ai::manager::get_singleton(), ai::manager::remove_gamestate_observer(), and ai::manager::remove_recruit_list_changed_observer().
int ai::default_recruitment::recruitment::recruit_situation_change_observer::gamestate_changed | ( | ) |
Definition at line 1808 of file recruitment.cpp.
Referenced by ai::default_recruitment::recruitment::execute().
|
virtual |
Implements events::observer.
Definition at line 1785 of file recruitment.cpp.
References LOG_AI_RECRUITMENT.
bool ai::default_recruitment::recruitment::recruit_situation_change_observer::recruit_list_changed | ( | ) |
Definition at line 1800 of file recruitment.cpp.
Referenced by ai::default_recruitment::recruitment::evaluate(), and ai::default_recruitment::recruitment::execute().
void ai::default_recruitment::recruitment::recruit_situation_change_observer::reset_gamestate_changed | ( | ) |
Definition at line 1812 of file recruitment.cpp.
Referenced by ai::default_recruitment::recruitment::execute().
void ai::default_recruitment::recruitment::recruit_situation_change_observer::set_recruit_list_changed | ( | bool | changed | ) |
Definition at line 1804 of file recruitment.cpp.
Referenced by ai::default_recruitment::recruitment::evaluate().
|
private |
Definition at line 251 of file recruitment.hpp.
|
private |
Definition at line 250 of file recruitment.hpp.