#include <ca.hpp>


Public Member Functions | |
| aspect_recruitment_phase (rca_context &context, const config &cfg) | |
| virtual | ~aspect_recruitment_phase () |
| virtual double | evaluate () |
| Evaluate the candidate action, resetting the internal state of the action. | |
| virtual void | execute () |
| Execute the candidate action. | |
Definition at line 58 of file ca.hpp.
| ai::testing_ai_default::aspect_recruitment_phase::aspect_recruitment_phase | ( | rca_context & | context, | |
| const config & | cfg | |||
| ) |
| ai::testing_ai_default::aspect_recruitment_phase::~aspect_recruitment_phase | ( | ) | [virtual] |
| double ai::testing_ai_default::aspect_recruitment_phase::evaluate | ( | ) | [virtual] |
Evaluate the candidate action, resetting the internal state of the action.
| >0 | if the action is good | |
| <=0 | if the action is not good |
Implements ai::candidate_action.
Definition at line 132 of file ca.cpp.
References ai::candidate_action::BAD_SCORE, unit_map::find_leader(), pathfind::find_vacant_tile(), resources::game_map, ai::candidate_action::get_score(), ai::side_context_proxy::get_side(), and resources::units.

| void ai::testing_ai_default::aspect_recruitment_phase::execute | ( | ) | [virtual] |
Execute the candidate action.
Implements ai::candidate_action.
Definition at line 153 of file ca.cpp.
References ERR_AI_TESTING_AI_DEFAULT, ai::readonly_context_proxy::get_recruitment(), and ai::readonly_context_proxy::raise_user_interact().

| Generated by doxygen 1.7.1 on Thu May 24 2012 01:19:06 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |