#include <contexts.hpp>
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_context & | get_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... | |
Definition at line 120 of file contexts.hpp.
|
inlinevirtual |
empty destructor
Definition at line 136 of file contexts.hpp.
|
inline |
empty constructor
Definition at line 141 of file contexts.hpp.
|
pure virtual |
Get the value of the recursion counter.
Implemented in ai::formula_ai, ai::readwrite_context_impl, ai::readonly_context_impl, ai::side_context_impl, ai::readwrite_context_proxy, ai::readonly_context_proxy, ai::side_context_proxy, ai::default_ai_context_impl, ai::stage, ai::candidate_action, and ai::ai_composite.
Referenced by ai::side_context_proxy::get_recursion_count(), ai::readonly_context_proxy::get_recursion_count(), and ai::readwrite_context_proxy::get_recursion_count().
|
pure virtual |
Get the side number.
Implemented in ai::side_context_impl, and ai::side_context_proxy.
Referenced by ai::ai_attack(), ai::ai_move(), ai::ai_recall(), ai::ai_recruit(), ai::ai_stopunit_select(), ai::lua_ai_context::create(), ai::engine_lua::do_parse_aspect_from_config(), ai::engine_cpp::do_parse_aspect_from_config(), ai::engine_cpp::do_parse_candidate_action_from_config(), ai::engine_fai::do_parse_candidate_action_from_config(), ai::engine_cpp::do_parse_engine_from_config(), ai::engine_lua::do_parse_goal_from_config(), ai::engine_cpp::do_parse_goal_from_config(), ai::engine_cpp::do_parse_stage_from_config(), ai::ai_default_rca::candidate_action_evaluation_loop::do_play_stage(), ai::engine::engine(), wfl::set_unit_var_callable::execute_self(), ai::side_context_proxy::get_side(), ai::impl_ai_aspect_get(), ai::impl_ai_get(), ai::ai_composite::preparse_cfg(), and ai::ai_default_rca::candidate_action_evaluation_loop::remove_completed_cas().
|
pure virtual |
unwrap
Implemented in ai::side_context_impl, and ai::side_context_proxy.
Referenced by ai::side_context_proxy::get_side_context().
|
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().
|
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().