Public Member Functions | Private Attributes | Static Private Attributes

ai::formula_ai::gamestate_change_observer Class Reference

#include <ai.hpp>

Inheritance diagram for ai::formula_ai::gamestate_change_observer:
Inheritance graph
[legend]
Collaboration diagram for ai::formula_ai::gamestate_change_observer:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Definition at line 75 of file ai.hpp.


Constructor & Destructor Documentation

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

Definition at line 975 of file ai.cpp.

References ai::manager::add_gamestate_observer().

Here is the call graph for this function:

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

Definition at line 981 of file ai.cpp.

References ai::manager::remove_gamestate_observer().

Here is the call graph for this function:


Member Function Documentation

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:


Member Data Documentation

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:18:59 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs