The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
ai::formula_ai::gamestate_change_observer Class Reference

#include <ai.hpp>

Inheritance diagram for ai::formula_ai::gamestate_change_observer:
Inheritance graph

Public Member Functions

 gamestate_change_observer ()
 
 ~gamestate_change_observer ()
 
void handle_generic_event (const std::string &)
 
bool set_var_check ()
 
bool set_unit_var_check ()
 
bool continue_check ()
 
- Public Member Functions inherited from events::observer
virtual ~observer ()
 

Private Attributes

int set_var_counter_
 
int set_unit_var_counter_
 
int continue_counter_
 

Static Private Attributes

static const int MAX_CALLS = 1000
 

Detailed Description

Definition at line 88 of file ai.hpp.

Constructor & Destructor Documentation

ai::formula_ai::gamestate_change_observer::gamestate_change_observer ( )

Definition at line 989 of file ai.cpp.

References ai::manager::add_gamestate_observer().

ai::formula_ai::gamestate_change_observer::~gamestate_change_observer ( )

Definition at line 995 of file ai.cpp.

References ai::manager::remove_gamestate_observer().

Member Function Documentation

bool ai::formula_ai::gamestate_change_observer::continue_check ( )

Definition at line 1022 of file ai.cpp.

Referenced by ai::formula_ai::execute_variant().

void ai::formula_ai::gamestate_change_observer::handle_generic_event ( const std::string )
virtual

Implements events::observer.

Definition at line 999 of file ai.cpp.

bool ai::formula_ai::gamestate_change_observer::set_unit_var_check ( )

Definition at line 1014 of file ai.cpp.

Referenced by ai::formula_ai::execute_variant().

bool ai::formula_ai::gamestate_change_observer::set_var_check ( )

Definition at line 1006 of file ai.cpp.

Referenced by ai::formula_ai::execute_variant().

Member Data Documentation

int ai::formula_ai::gamestate_change_observer::continue_counter_
private

Definition at line 93 of file ai.hpp.

const int ai::formula_ai::gamestate_change_observer::MAX_CALLS = 1000
staticprivate

Definition at line 90 of file ai.hpp.

int ai::formula_ai::gamestate_change_observer::set_unit_var_counter_
private

Definition at line 92 of file ai.hpp.

int ai::formula_ai::gamestate_change_observer::set_var_counter_
private

Definition at line 91 of file ai.hpp.


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