#include <ca.hpp>


Public Member Functions | |
| passive_leader_shares_keep_phase (rca_context &context, const config &cfg) | |
| virtual | ~passive_leader_shares_keep_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 337 of file ca.hpp.
| ai::testing_ai_default::passive_leader_shares_keep_phase::passive_leader_shares_keep_phase | ( | rca_context & | context, | |
| const config & | cfg | |||
| ) |
| ai::testing_ai_default::passive_leader_shares_keep_phase::~passive_leader_shares_keep_phase | ( | ) | [virtual] |
| double ai::testing_ai_default::passive_leader_shares_keep_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 1970 of file ca.cpp.
References ai::candidate_action::BAD_SCORE, ai::readonly_context_proxy::current_team(), unit_map::find_leaders(), ai::readonly_context_proxy::get_passive_leader(), ai::readonly_context_proxy::get_passive_leader_shares_keep(), ai::candidate_action::get_score(), ai::side_context_proxy::get_side(), team::side(), resources::teams, and resources::units.

| void ai::testing_ai_default::passive_leader_shares_keep_phase::execute | ( | ) | [virtual] |
Execute the candidate action.
Implements ai::candidate_action.
Definition at line 1992 of file ca.cpp.
References ai::readonly_context_proxy::calculate_moves(), ai::readonly_context_proxy::check_move_action(), distance_between(), unit_map::find(), unit_map::find_leaders(), pathfind::find_vacant_tile(), resources::game_map, ai::candidate_action::get_name(), ai::side_context_proxy::get_side(), team::gold(), LOG_AI_TESTING_AI_DEFAULT, team::minimum_recruit_price(), team::total_income(), resources::units, and pathfind::VACANT_CASTLE.

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