The Battle for Wesnoth  1.19.4+dev
Public Member Functions | List of all members
ai::side_context Class Referenceabstract

#include <contexts.hpp>

Inheritance diagram for ai::side_context:

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 120 of file contexts.hpp.

Constructor & Destructor Documentation

◆ ~side_context()

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

empty destructor

Definition at line 136 of file contexts.hpp.

◆ side_context()

ai::side_context::side_context ( )
inline

empty constructor

Definition at line 141 of file contexts.hpp.

Member Function Documentation

◆ get_recursion_count()

virtual int ai::side_context::get_recursion_count ( ) const
pure virtual

◆ get_side()

virtual side_number ai::side_context::get_side ( ) const
pure virtual

◆ get_side_context()

virtual side_context& ai::side_context::get_side_context ( )
pure virtual

◆ set_side()

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::side_context_proxy::set_side().

◆ to_side_context_config()

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::side_context_proxy::to_side_context_config().


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