#include <contexts.hpp>
Public Member Functions | |
| recursion_counter (int counter) | |
| int | get_count () const |
| Get the current value of the recursion counter. | |
| bool | is_ok () const |
| Check if more recursion is allowed. | |
Static Public Attributes | |
| static const int | MAX_COUNTER_VALUE = 100 |
Private Attributes | |
| int | counter_ |
Definition at line 57 of file contexts.hpp.
| ai::recursion_counter::recursion_counter | ( | int | counter | ) | [inline] |
Definition at line 59 of file contexts.hpp.
References MAX_COUNTER_VALUE.
| int ai::recursion_counter::get_count | ( | ) | const [inline] |
Get the current value of the recursion counter.
Definition at line 71 of file contexts.hpp.
References counter_.
Referenced by ai::ai_composite::get_ai_context(), ai::stage::get_recursion_count(), ai::candidate_action::get_recursion_count(), ai::default_ai_context_impl::get_recursion_count(), ai::readwrite_context_impl::get_recursion_count(), ai::readonly_context_impl::get_recursion_count(), ai::side_context_impl::get_recursion_count(), ai::formula_ai::get_recursion_count(), and ai::idle_ai::get_recursion_count().

| bool ai::recursion_counter::is_ok | ( | ) | const [inline] |
Check if more recursion is allowed.
Definition at line 84 of file contexts.hpp.
References counter_, and MAX_COUNTER_VALUE.
int ai::recursion_counter::counter_ [private] |
Definition at line 91 of file contexts.hpp.
Referenced by get_count(), and is_ok().
const int ai::recursion_counter::MAX_COUNTER_VALUE = 100 [static] |
Definition at line 78 of file contexts.hpp.
Referenced by ai::formula_ai::execute_variant(), is_ok(), and recursion_counter().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:18:35 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |