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"
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") |
Defensive fallback, to be used during unfavourable conditions.
Definition in file ca_global_fallback.cpp.
| #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) |
Definition at line 46 of file ca_global_fallback.cpp.
Referenced by ai::testing_ai_default::global_fallback_phase::execute().
| #define WRN_AI LOG_STREAM(warn, log_ai_testing_ca_global_fallback) |
Definition at line 47 of file ca_global_fallback.cpp.
| Generated by doxygen 1.7.1 on Wed May 23 2012 01:03:34 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |