Artificial intelligence - The computer commands the enemy. More...
#include "ai.hpp"#include "../actions.hpp"#include "../manager.hpp"#include "../formula/ai.hpp"#include "../../array.hpp"#include "../../dialogs.hpp"#include "../../foreach.hpp"#include "../../game_end_exceptions.hpp"#include "../../game_events.hpp"#include "../../game_preferences.hpp"#include "../../log.hpp"#include "../../mouse_handler_base.hpp"#include "../../replay.hpp"#include "../../resources.hpp"#include "../../statistics.hpp"#include "../../terrain_filter.hpp"#include "../../unit_display.hpp"#include "../../wml_exception.hpp"#include "../../pathfind/pathfind.hpp"#include <iterator>#include <algorithm>#include <fstream>
Go to the source code of this file.
Classes | |
| class | ai::remove_wrong_targets |
| class | ai::unit_combat_score_getter |
| class | ai::bad_recalls_remover |
| class | ai::combat_score_less |
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. | |
Defines | |
| #define | DBG_AI LOG_STREAM(debug, log_ai) |
| #define | LOG_AI LOG_STREAM(info, log_ai) |
| #define | WRN_AI LOG_STREAM(warn, log_ai) |
| #define | ERR_AI LOG_STREAM(err, log_ai) |
Typedefs | |
| typedef util::array < map_location, 6 > | ai::adjacent_tiles_array |
Functions | |
| template<class T , class V > | |
| bool | ai::smaller_mapped_value (const std::pair< T, V > &a, const std::pair< T, V > &b) |
| static void | ai::debug_print_recall_list_scores (const std::vector< std::pair< std::string, double > > &recall_list_scores, const char *message) |
Variables | |
| static lg::log_domain | log_ai ("ai/general") |
Artificial intelligence - The computer commands the enemy.
Definition in file ai.cpp.
| #define DBG_AI LOG_STREAM(debug, log_ai) |
Definition at line 49 of file ai.cpp.
Referenced by ai::debug_print_recall_list_scores(), and ai::remove_wrong_targets::operator()().
| #define ERR_AI LOG_STREAM(err, log_ai) |
Definition at line 52 of file ai.cpp.
Referenced by ai::ai_default_recruitment_stage::average_resistance_against(), ai::ai_default_recruitment_stage::do_play_stage(), and ai::ai_default_recruitment_stage::recruit_usage().
| #define LOG_AI LOG_STREAM(info, log_ai) |
Definition at line 50 of file ai.cpp.
Referenced by ai::ai_default_recruitment_stage::analyze_potential_recruit_combat(), ai::ai_default_recruitment_stage::analyze_potential_recruit_movements(), ai::ai_default_recruitment_stage::average_resistance_against(), ai::ai_default_recruitment_stage::compare_unit_types(), ai::ai_default_recruitment_stage::do_play_stage(), and ai::ai_default_recruitment_stage::recruit_usage().
| #define WRN_AI LOG_STREAM(warn, log_ai) |
Definition at line 51 of file ai.cpp.
Referenced by ai::ai_default_recruitment_stage::recruit_usage().
| Generated by doxygen 1.7.1 on Wed Feb 8 2012 01:02:51 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |