#include <ai.hpp>


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 () |
Private Attributes | |
| int | set_var_counter_ |
| int | set_unit_var_counter_ |
| int | continue_counter_ |
Static Private Attributes | |
| static const int | MAX_CALLS = 1000 |
Definition at line 75 of file ai.hpp.
| ai::formula_ai::gamestate_change_observer::gamestate_change_observer | ( | ) |
Definition at line 975 of file ai.cpp.
References ai::manager::add_gamestate_observer().

| ai::formula_ai::gamestate_change_observer::~gamestate_change_observer | ( | ) |
Definition at line 981 of file ai.cpp.
References ai::manager::remove_gamestate_observer().

| bool ai::formula_ai::gamestate_change_observer::continue_check | ( | ) |
Definition at line 1008 of file ai.cpp.
References continue_counter_, and MAX_CALLS.
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 985 of file ai.cpp.
References continue_counter_, set_unit_var_counter_, and set_var_counter_.
| bool ai::formula_ai::gamestate_change_observer::set_unit_var_check | ( | ) |
Definition at line 1000 of file ai.cpp.
References MAX_CALLS, and set_unit_var_counter_.
Referenced by ai::formula_ai::execute_variant().

| bool ai::formula_ai::gamestate_change_observer::set_var_check | ( | ) |
Definition at line 992 of file ai.cpp.
References MAX_CALLS, and set_var_counter_.
Referenced by ai::formula_ai::execute_variant().

Definition at line 80 of file ai.hpp.
Referenced by continue_check(), and handle_generic_event().
const int ai::formula_ai::gamestate_change_observer::MAX_CALLS = 1000 [static, private] |
Definition at line 77 of file ai.hpp.
Referenced by continue_check(), set_unit_var_check(), and set_var_check().
Definition at line 79 of file ai.hpp.
Referenced by handle_generic_event(), and set_unit_var_check().
Definition at line 78 of file ai.hpp.
Referenced by handle_generic_event(), and set_var_check().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:18:59 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |