The Battle for Wesnoth  1.19.7+dev
Public Member Functions | Private Attributes | List of all members
ai::default_recruitment::recruitment::recruit_situation_change_observer Class Reference
Inheritance diagram for ai::default_recruitment::recruitment::recruit_situation_change_observer:

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_
 

Detailed Description

Definition at line 237 of file recruitment.hpp.

Constructor & Destructor Documentation

◆ recruit_situation_change_observer()

ai::default_recruitment::recruitment::recruit_situation_change_observer::recruit_situation_change_observer ( )

◆ ~recruit_situation_change_observer()

ai::default_recruitment::recruitment::recruit_situation_change_observer::~recruit_situation_change_observer ( )

Member Function Documentation

◆ gamestate_changed()

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().

◆ handle_generic_event()

void ai::default_recruitment::recruitment::recruit_situation_change_observer::handle_generic_event ( const std::string &  event)
virtual

Implements events::observer.

Definition at line 1785 of file recruitment.cpp.

References LOG_AI_RECRUITMENT.

◆ recruit_list_changed()

bool ai::default_recruitment::recruitment::recruit_situation_change_observer::recruit_list_changed ( )

◆ reset_gamestate_changed()

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().

◆ set_recruit_list_changed()

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().

Member Data Documentation

◆ gamestate_changed_

int ai::default_recruitment::recruitment::recruit_situation_change_observer::gamestate_changed_
private

Definition at line 251 of file recruitment.hpp.

◆ recruit_list_changed_

bool ai::default_recruitment::recruitment::recruit_situation_change_observer::recruit_list_changed_
private

Definition at line 250 of file recruitment.hpp.


The documentation for this class was generated from the following files: