The Battle for Wesnoth  1.15.2+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:
Inheritance graph

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 236 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 1803 of file recruitment.cpp.

References gamestate_changed_.

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 1780 of file recruitment.cpp.

References gamestate_changed_, LOG_AI_RECRUITMENT, and set_recruit_list_changed().

◆ 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 1807 of file recruitment.cpp.

References gamestate_changed_.

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)

Member Data Documentation

◆ gamestate_changed_

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

◆ recruit_list_changed_

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

Definition at line 249 of file recruitment.hpp.

Referenced by recruit_list_changed(), and set_recruit_list_changed().


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