Base class that holds the AI and current AI parameters. More...
#include <manager.hpp>
Public Member Functions | |
holder (side_number side, const config &cfg) | |
virtual | ~holder () |
ai_composite & | get_ai_ref () |
const std::string | describe_ai () |
config | to_config () const |
void | modify_ai (const config &cfg) |
void | modify_side_ai_config (config cfg) |
const std::string | get_ai_overview () |
const std::string | get_ai_structure () |
const std::string | get_ai_identifier () const |
component * | get_component (component *root, const std::string &path) |
Private Member Functions | |
void | init (side_number side) |
Base class that holds the AI and current AI parameters.
It is an implementation detail.
Definition at line 55 of file manager.hpp.
ai::holder::holder | ( | side_number | side, |
const config & | cfg | ||
) |
Definition at line 79 of file manager.cpp.
References DBG_AI_MANAGER, and describe_ai().
|
virtual |
Definition at line 129 of file manager.cpp.
References ai_, default_ai_context_, describe_ai(), LOG_AI_MANAGER, readonly_context_, readwrite_context_, and side_context_.
const std::string ai::holder::describe_ai | ( | ) |
const std::string ai::holder::get_ai_identifier | ( | ) | const |
Definition at line 297 of file manager.cpp.
References cfg_.
Referenced by ai::manager::get_active_ai_identifier_for_side().
const std::string ai::holder::get_ai_overview | ( | ) |
Definition at line 253 of file manager.cpp.
References ai_, get_ai_ref(), and utils::join().
Referenced by ai::manager::get_active_ai_overview_for_side().
ai_composite & ai::holder::get_ai_ref | ( | ) |
Definition at line 143 of file manager.cpp.
References ai_, init(), and side_.
Referenced by ai::manager::get_active_ai_for_side(), get_ai_overview(), get_ai_structure(), and modify_ai().
const std::string ai::holder::get_ai_structure | ( | ) |
Definition at line 288 of file manager.cpp.
References ai_, get_ai_ref(), and ai::component_manager::print_component_tree().
Referenced by ai::manager::get_active_ai_structure_for_side().
component * ai::holder::get_component | ( | component * | root, |
const std::string & | path | ||
) |
Definition at line 302 of file manager.cpp.
References ai_, game_config::debug, ai::component_manager::get_component(), init(), and side_.
Referenced by intf_debug_ai().
|
private |
Definition at line 86 of file manager.cpp.
References ai_, cfg_, config::child_range(), config::clear_children(), default_ai_context_, describe_ai(), ERR_AI_MANAGER, modify_ai(), ai::readonly_context::on_readonly_context_create(), readonly_context_, readwrite_context_, ai::side_context::set_side(), and side_context_.
Referenced by get_ai_ref(), and get_component().
Definition at line 180 of file manager.cpp.
References ai::component_manager::add_component(), ai_, ai::component_manager::change_component(), DBG_AI_MOD, ai::component_manager::delete_component(), ERR_AI_MOD, get_ai_ref(), LOG_AI_MOD, side_, and to_config().
Referenced by init(), and ai::manager::modify_active_ai_for_side().
Definition at line 154 of file manager.cpp.
References ai::readonly_context::add_facet(), cfg_, config::child_range(), DBG_AI_MANAGER, ai::configuration::expand_simplified_aspects(), config::merge_children_by_attribute(), config::merge_with(), readonly_context_, and side_.
Referenced by ai::manager::modify_active_ai_config_old_for_side().
config ai::holder::to_config | ( | ) | const |
Definition at line 215 of file manager.cpp.
References ai_, cfg_, default_ai_context_, config::merge_with(), readonly_context_, readwrite_context_, side_context_, ai::default_ai_context::to_default_ai_context_config(), ai::readonly_context::to_readonly_context_config(), ai::readwrite_context::to_readwrite_context_config(), and ai::side_context::to_side_context_config().
Referenced by modify_ai(), and ai::manager::to_config().
|
private |
Definition at line 85 of file manager.hpp.
Referenced by describe_ai(), get_ai_overview(), get_ai_ref(), get_ai_structure(), get_component(), init(), modify_ai(), to_config(), and ~holder().
|
private |
Definition at line 91 of file manager.hpp.
Referenced by describe_ai(), get_ai_identifier(), init(), modify_side_ai_config(), and to_config().
|
private |
Definition at line 89 of file manager.hpp.
Referenced by init(), to_config(), and ~holder().
|
private |
Definition at line 87 of file manager.hpp.
Referenced by init(), modify_side_ai_config(), to_config(), and ~holder().
|
private |
Definition at line 88 of file manager.hpp.
Referenced by init(), to_config(), and ~holder().
|
private |
Definition at line 90 of file manager.hpp.
Referenced by describe_ai(), get_ai_ref(), get_component(), modify_ai(), and modify_side_ai_config().
|
private |
Definition at line 86 of file manager.hpp.
Referenced by init(), to_config(), and ~holder().