Default AI (Testing). More...
#include "ca.hpp"#include "../actions.hpp"#include "../manager.hpp"#include "../composite/engine.hpp"#include "../composite/rca.hpp"#include "../composite/stage.hpp"#include "../../gamestatus.hpp"#include "../../foreach.hpp"#include "../../log.hpp"#include "../../map.hpp"#include "../../resources.hpp"#include "../../team.hpp"#include "../../wml_exception.hpp"#include "../../pathfind/pathfind.hpp"#include <numeric>
Go to the source code of this file.
Namespaces | |
| namespace | ai |
A small explanation about what's going on here: Each action has access to two game_info objects First is 'info' - real information Second is 'subjective info' - AIs perception of what's going on So, when we check_before action, we use 'subjective info' and don't touch real 'info' at all. | |
| namespace | ai::testing_ai_default |
Defines | |
| #define | DBG_AI_TESTING_AI_DEFAULT LOG_STREAM(debug, log_ai_testing_ai_default) |
| #define | LOG_AI_TESTING_AI_DEFAULT LOG_STREAM(info, log_ai_testing_ai_default) |
| #define | WRN_AI_TESTING_AI_DEFAULT LOG_STREAM(warn, log_ai_testing_ai_default) |
| #define | ERR_AI_TESTING_AI_DEFAULT LOG_STREAM(err, log_ai_testing_ai_default) |
Variables | |
| static lg::log_domain | log_ai_testing_ai_default ("ai/ca/testing_ai_default") |
Default AI (Testing).
Definition in file ca.cpp.
| #define DBG_AI_TESTING_AI_DEFAULT LOG_STREAM(debug, log_ai_testing_ai_default) |
Definition at line 40 of file ca.cpp.
Referenced by ai::testing_ai_default::get_villages_phase::dispatch(), ai::testing_ai_default::get_villages_phase::dispatch_complex(), ai::testing_ai_default::get_villages_phase::dispatch_unit_simple(), ai::testing_ai_default::get_villages_phase::dispatch_village_simple(), ai::testing_ai_default::get_healing_phase::evaluate(), ai::testing_ai_default::get_villages_phase::find_villages(), ai::testing_ai_default::get_villages_phase::full_dispatch(), ai::testing_ai_default::get_villages_phase::get_villages(), and ai::testing_ai_default::get_villages_phase::remove_unit().
| #define ERR_AI_TESTING_AI_DEFAULT LOG_STREAM(err, log_ai_testing_ai_default) |
Definition at line 43 of file ca.cpp.
Referenced by ai::testing_ai_default::recruitment_phase::average_resistance_against(), ai::testing_ai_default::leader_control_phase::evaluate(), ai::testing_ai_default::move_leader_to_goals_phase::evaluate(), ai::testing_ai_default::leader_control_phase::execute(), and ai::testing_ai_default::aspect_recruitment_phase::execute().
| #define LOG_AI_TESTING_AI_DEFAULT LOG_STREAM(info, log_ai_testing_ai_default) |
Definition at line 41 of file ca.cpp.
Referenced by ai::testing_ai_default::recruitment_phase::analyze_potential_recruit_combat(), ai::testing_ai_default::recruitment_phase::average_resistance_against(), ai::testing_ai_default::recruitment_phase::compare_unit_types(), ai::testing_ai_default::move_leader_to_goals_phase::evaluate(), ai::testing_ai_default::combat_phase::evaluate(), ai::testing_ai_default::passive_leader_shares_keep_phase::execute(), ai::testing_ai_default::simple_move_and_targeting_phase::execute(), ai::testing_ai_default::retreat_phase::execute(), ai::testing_ai_default::get_healing_phase::execute(), ai::testing_ai_default::get_villages_phase::execute(), ai::testing_ai_default::move_leader_to_keep_phase::execute(), ai::testing_ai_default::move_leader_to_goals_phase::execute(), ai::testing_ai_default::combat_phase::execute(), ai::testing_ai_default::recruitment_phase::execute(), ai::testing_ai_default::goto_phase::execute(), ai::testing_ai_default::get_villages_phase::get_villages(), and ai::testing_ai_default::recruitment_phase::recruit_usage().
| #define WRN_AI_TESTING_AI_DEFAULT LOG_STREAM(warn, log_ai_testing_ai_default) |
Definition at line 42 of file ca.cpp.
Referenced by ai::testing_ai_default::move_leader_to_goals_phase::evaluate(), and ai::testing_ai_default::recruitment_phase::recruit_usage().
lg::log_domain log_ai_testing_ai_default("ai/ca/testing_ai_default") [static] |
| Generated by doxygen 1.7.1 on Wed May 23 2012 01:03:33 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |