engine_fai: minor fixes

This commit is contained in:
Iurii Chernyi 2009-07-02 18:10:20 +00:00
parent c861415f97
commit 7add8fe9f5
3 changed files with 5 additions and 3 deletions

View file

@ -13,8 +13,8 @@
*/
/**
* CPP AI Support engine - creating specific ai components from config
* @file ai/composite/engine_default.cpp
* FAI AI Support engine - creating specific ai components from config
* @file ai/composite/engine_fai.cpp
*/
#include "ai.hpp"
@ -77,6 +77,7 @@ void engine_fai::do_parse_candidate_action_from_config( rca_context &context, co
if (!fai_ca) {
ERR_AI_COMPOSITE_ENGINE_FAI << "side "<<ai_.get_side()<< " : ERROR creating candidate_action["<<cfg["name"]<<"]"<< std::endl;
DBG_AI_COMPOSITE_ENGINE_FAI << "config snippet contains: " << std::endl << cfg << std::endl;
return;
}
candidate_action_ptr ca = candidate_action_ptr(new fai_candidate_action_wrapper(context,cfg,fai_ca,formula_ai_));
*b = ca;

View file

@ -13,7 +13,7 @@
*/
/**
* CPP AI Support engine - creating specific ai components from config
* FAI AI Support engine - creating specific ai components from config
* @file ai/composite/engine_fai.hpp
*/

View file

@ -63,6 +63,7 @@ void candidate_action_evaluation_loop::do_play_stage()
//Evaluation
foreach(composite_ai::candidate_action_ptr ca_ptr, candidate_actions_){
if (!ca_ptr->is_enabled()){
DBG_AI_TESTING_RCA_DEFAULT << "Skipping disabled candidate action: "<< *ca_ptr << std::endl;
continue;
}