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 256 of file recruitment.hpp.
ai::default_recruitment::recruitment::recruit_situation_change_observer::recruit_situation_change_observer | ( | ) |
Observer Code.
Definition at line 1743 of file recruitment.cpp.
References ai::manager::add_gamestate_observer(), and ai::manager::add_recruit_list_changed_observer().
ai::default_recruitment::recruitment::recruit_situation_change_observer::~recruit_situation_change_observer | ( | ) |
Definition at line 1759 of file recruitment.cpp.
References 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 1772 of file recruitment.cpp.
Referenced by ai::default_recruitment::recruitment::execute().
|
virtual |
Implements events::observer.
Definition at line 1749 of file recruitment.cpp.
References LOG_AI_RECRUITMENT.
bool ai::default_recruitment::recruitment::recruit_situation_change_observer::recruit_list_changed | ( | ) |
Definition at line 1764 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 1776 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 1768 of file recruitment.cpp.
Referenced by ai::default_recruitment::recruitment::evaluate().
|
private |
Definition at line 270 of file recruitment.hpp.
|
private |
Definition at line 269 of file recruitment.hpp.