Classes | Namespaces | Defines | Typedefs | Functions | Variables

ai/default/ai.cpp File Reference

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>
Include dependency graph for ai.cpp:

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")

Detailed Description

Artificial intelligence - The computer commands the enemy.

Definition in file ai.cpp.


Define Documentation

#define DBG_AI   LOG_STREAM(debug, log_ai)
#define ERR_AI   LOG_STREAM(err, log_ai)
#define LOG_AI   LOG_STREAM(info, log_ai)
#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().


Variable Documentation

lg::log_domain log_ai("ai/general") [static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Wed Feb 8 2012 01:02:51 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs