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 | List of all members
ai::side_context_impl Class Reference

#include <contexts.hpp>

Inheritance diagram for ai::side_context_impl:
Inheritance graph

Public Member Functions

 side_context_impl (side_number side, const config &)
 
virtual ~side_context_impl ()
 
virtual side_number get_side () const
 Get the side number. More...
 
virtual void set_side (side_number side)
 Set the side number. More...
 
virtual side_contextget_side_context ()
 unwrap More...
 
virtual int get_recursion_count () const
 Get the value of the recursion counter. More...
 
virtual config to_side_context_config () const
 serialize this context to config More...
 
- Public Member Functions inherited from ai::side_context
virtual ~side_context ()
 empty destructor More...
 
 side_context ()
 empty constructor More...
 

Private Attributes

side_number side_
 
recursion_counter recursion_counter_
 

Detailed Description

Definition at line 1098 of file contexts.hpp.

Constructor & Destructor Documentation

ai::side_context_impl::side_context_impl ( side_number  side,
const config  
)
inline

Definition at line 1100 of file contexts.hpp.

virtual ai::side_context_impl::~side_context_impl ( )
inlinevirtual

Definition at line 1105 of file contexts.hpp.

Member Function Documentation

int ai::side_context_impl::get_recursion_count ( ) const
virtual

Get the value of the recursion counter.

Implements ai::side_context.

Definition at line 80 of file contexts.cpp.

References ai::recursion_counter::get_count(), and recursion_counter_.

virtual side_number ai::side_context_impl::get_side ( ) const
inlinevirtual

Get the side number.

Implements ai::side_context.

Definition at line 1107 of file contexts.hpp.

References side_.

virtual side_context& ai::side_context_impl::get_side_context ( )
inlinevirtual

unwrap

Implements ai::side_context.

Definition at line 1118 of file contexts.hpp.

virtual void ai::side_context_impl::set_side ( side_number  side)
inlinevirtual

Set the side number.

Implements ai::side_context.

Definition at line 1112 of file contexts.hpp.

References side_.

config ai::side_context_impl::to_side_context_config ( ) const
virtual

serialize this context to config

Implements ai::side_context.

Definition at line 285 of file contexts.cpp.

Member Data Documentation

recursion_counter ai::side_context_impl::recursion_counter_
private

Definition at line 1131 of file contexts.hpp.

Referenced by get_recursion_count().

side_number ai::side_context_impl::side_
private

Definition at line 1130 of file contexts.hpp.

Referenced by get_side(), and set_side().


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