The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
ai::side_context Class Referenceabstract

#include <contexts.hpp>

Inheritance diagram for ai::side_context:
Inheritance graph

Public Member Functions

virtual side_number get_side () const =0
 Get the side number. More...
 
virtual void set_side (side_number side)=0
 Set the side number. More...
 
virtual ~side_context ()
 empty destructor More...
 
 side_context ()
 empty constructor More...
 
virtual side_contextget_side_context ()=0
 unwrap More...
 
virtual config to_side_context_config () const =0
 serialize this context to config More...
 
virtual int get_recursion_count () const =0
 Get the value of the recursion counter. More...
 

Detailed Description

Definition at line 136 of file contexts.hpp.

Constructor & Destructor Documentation

virtual ai::side_context::~side_context ( )
inlinevirtual

empty destructor

Definition at line 154 of file contexts.hpp.

ai::side_context::side_context ( )
inline

empty constructor

Definition at line 160 of file contexts.hpp.

Member Function Documentation

virtual int ai::side_context::get_recursion_count ( ) const
pure virtual
virtual side_number ai::side_context::get_side ( ) const
pure virtual
virtual side_context& ai::side_context::get_side_context ( )
pure virtual
virtual void ai::side_context::set_side ( side_number  side)
pure virtual

Set the side number.

Implemented in ai::side_context_impl, and ai::side_context_proxy.

Referenced by ai::holder::init(), and ai::side_context_proxy::set_side().

virtual config ai::side_context::to_side_context_config ( ) const
pure virtual

serialize this context to config

Implemented in ai::side_context_impl, and ai::side_context_proxy.

Referenced by ai::holder::to_config(), and ai::side_context_proxy::to_side_context_config().


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