Namespaces | Defines | Functions | Variables

ai/testing/ca_global_fallback.cpp File Reference

Defensive fallback, to be used during unfavourable conditions. More...

#include "ca_global_fallback.hpp"
#include "../composite/ai.hpp"
#include "../actions.hpp"
#include "../../game_display.hpp"
#include "../../foreach.hpp"
#include "../../log.hpp"
#include "../../map.hpp"
#include "../../map_label.hpp"
#include "../../replay.hpp"
#include "../../resources.hpp"
#include "../../sdl_utils.hpp"
#include "../../team.hpp"
#include "../../terrain_filter.hpp"
#include "../../tod_manager.hpp"
Include dependency graph for ca_global_fallback.cpp:

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   LOG_STREAM(debug, log_ai_testing_ca_global_fallback)
#define LOG_AI   LOG_STREAM(info, log_ai_testing_ca_global_fallback)
#define WRN_AI   LOG_STREAM(warn, log_ai_testing_ca_global_fallback)
#define ERR_AI   LOG_STREAM(err, log_ai_testing_ca_global_fallback)

Functions

static void ai::testing_ai_default::display_label (int, const map_location &location, const std::string &text, bool surrounded)

Variables

static lg::log_domain ai::testing_ai_default::log_ai_testing_ca_global_fallback ("ai/ca/global_fallback")

Detailed Description

Defensive fallback, to be used during unfavourable conditions.

Definition in file ca_global_fallback.cpp.


Define Documentation

#define DBG_AI   LOG_STREAM(debug, log_ai_testing_ca_global_fallback)

Definition at line 45 of file ca_global_fallback.cpp.

#define ERR_AI   LOG_STREAM(err, log_ai_testing_ca_global_fallback)

Definition at line 48 of file ca_global_fallback.cpp.

#define LOG_AI   LOG_STREAM(info, log_ai_testing_ca_global_fallback)
#define WRN_AI   LOG_STREAM(warn, log_ai_testing_ca_global_fallback)

Definition at line 47 of file ca_global_fallback.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Wed May 23 2012 01:03:34 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs