#include <ca.hpp>


Public Member Functions | |
| get_healing_phase (rca_context &context, const config &cfg) | |
| virtual | ~get_healing_phase () |
| virtual double | evaluate () |
| Evaluate the candidate action, resetting the internal state of the action. | |
| virtual void | execute () |
| Execute the candidate action. | |
Private Attributes | |
| move_result_ptr | move_ |
Definition at line 267 of file ca.hpp.
| ai::testing_ai_default::get_healing_phase::get_healing_phase | ( | rca_context & | context, | |
| const config & | cfg | |||
| ) |
| ai::testing_ai_default::get_healing_phase::~get_healing_phase | ( | ) | [virtual] |
| double ai::testing_ai_default::get_healing_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 1633 of file ca.cpp.
References ai::candidate_action::BAD_SCORE, unit_map::begin(), unit::can_recruit(), ai::readonly_context_proxy::check_move_action(), DBG_AI_TESTING_AI_DEFAULT, unit_map::end(), unit_map::find(), resources::game_map, unit::get_ability_bool(), ai::readonly_context_proxy::get_enemy_dstsrc(), ai::readonly_context_proxy::get_passive_leader(), ai::candidate_action::get_score(), ai::side_context_proxy::get_side(), ai::readonly_context_proxy::get_srcdst(), unit::get_state(), unit::hitpoints(), unit::max_hitpoints(), move_, game_config::poison_amount, ai::readonly_context_proxy::power_projection(), unit::side(), unit::STATE_POISONED, and resources::units.

| void ai::testing_ai_default::get_healing_phase::execute | ( | ) | [virtual] |
Execute the candidate action.
Implements ai::candidate_action.
Definition at line 1689 of file ca.cpp.
References ai::candidate_action::get_name(), LOG_AI_TESTING_AI_DEFAULT, and move_.

Definition at line 279 of file ca.hpp.
Referenced by evaluate(), and execute().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:19:08 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |