Public Member Functions | Private Attributes | Static Private Attributes

recursion_preventer Class Reference

Collaboration diagram for recursion_preventer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 recursion_preventer (map_location &loc)
 ~recursion_preventer ()
bool too_many_recursions () const

Private Attributes

map_location loc_
bool too_many_recursions_

Static Private Attributes

static recursion_counter counter_ = recursion_counter()
static const int max_recursion = 10

Detailed Description

Definition at line 2079 of file game_events.cpp.


Constructor & Destructor Documentation

recursion_preventer::recursion_preventer ( map_location loc  )  [inline]

Definition at line 2086 of file game_events.cpp.

References counter_, loc_, max_recursion, and too_many_recursions_.

recursion_preventer::~recursion_preventer (  )  [inline]

Definition at line 2094 of file game_events.cpp.

References counter_, and loc_.


Member Function Documentation

bool recursion_preventer::too_many_recursions (  )  const [inline]

Definition at line 2102 of file game_events.cpp.

References too_many_recursions_.


Member Data Documentation

Definition at line 2080 of file game_events.cpp.

Referenced by recursion_preventer(), and ~recursion_preventer().

Definition at line 2082 of file game_events.cpp.

Referenced by recursion_preventer(), and ~recursion_preventer().

const int recursion_preventer::max_recursion = 10 [static, private]

Definition at line 2081 of file game_events.cpp.

Referenced by recursion_preventer().

Definition at line 2083 of file game_events.cpp.

Referenced by recursion_preventer(), and too_many_recursions().


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

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