#include <stage_rca.hpp>


Public Member Functions | |
| candidate_action_evaluation_loop (ai_context &context, const config &cfg) | |
| ~candidate_action_evaluation_loop () | |
| bool | do_play_stage () |
| void | on_create () |
| config | to_config () const |
| rca_context & | get_rca_context () |
| Unwrap. | |
| void | create_candidate_action (std::vector< candidate_action_ptr > &candidate_actions, const config &cfg) |
| void | remove_completed_cas () |
Private Attributes | |
| std::vector< candidate_action_ptr > | candidate_actions_ |
| const config & | cfg_ |
Definition at line 37 of file stage_rca.hpp.
| ai::testing_ai_default::candidate_action_evaluation_loop::candidate_action_evaluation_loop | ( | ai_context & | context, | |
| const config & | cfg | |||
| ) |
Definition at line 42 of file stage_rca.cpp.
| ai::testing_ai_default::candidate_action_evaluation_loop::~candidate_action_evaluation_loop | ( | ) |
Definition at line 204 of file stage_rca.cpp.
| void ai::testing_ai_default::candidate_action_evaluation_loop::create_candidate_action | ( | std::vector< candidate_action_ptr > & | candidate_actions, | |
| const config & | cfg | |||
| ) |
Definition at line 63 of file stage_rca.cpp.
References ai::engine::parse_candidate_action_from_config().
Referenced by on_create().


| bool ai::testing_ai_default::candidate_action_evaluation_loop::do_play_stage | ( | ) |
Definition at line 87 of file stage_rca.cpp.
References ai::candidate_action::BAD_SCORE, candidate_actions_, DBG_AI_TESTING_RCA_DEFAULT, ai::side_context::get_side(), ai::gamestate_observer::is_gamestate_changed(), LOG_AI_TESTING_RCA_DEFAULT, remove_completed_cas(), and sort().

| rca_context & ai::testing_ai_default::candidate_action_evaluation_loop::get_rca_context | ( | ) | [virtual] |
| void ai::testing_ai_default::candidate_action_evaluation_loop::on_create | ( | ) |
Definition at line 49 of file stage_rca.cpp.
References candidate_actions_, cfg_, config::child_range(), create_candidate_action(), ai::engine::parse_candidate_action_from_config(), ai::component::property_handlers(), and ai::register_vector_property().

| void ai::testing_ai_default::candidate_action_evaluation_loop::remove_completed_cas | ( | ) |
Definition at line 151 of file stage_rca.cpp.
References candidate_actions_, ai::stage::get_id(), ai::side_context::get_side(), ai::manager::modify_active_ai_for_side(), and game_config::path.
Referenced by do_play_stage().


| config ai::testing_ai_default::candidate_action_evaluation_loop::to_config | ( | ) | const |
Definition at line 69 of file stage_rca.cpp.
References config::add_child(), and candidate_actions_.

std::vector<candidate_action_ptr> ai::testing_ai_default::candidate_action_evaluation_loop::candidate_actions_ [private] |
Definition at line 56 of file stage_rca.hpp.
Referenced by do_play_stage(), on_create(), remove_completed_cas(), and to_config().
const config& ai::testing_ai_default::candidate_action_evaluation_loop::cfg_ [private] |
Definition at line 58 of file stage_rca.hpp.
Referenced by on_create().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:19:17 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |