Namespaces | Defines | Functions | Variables

ai/composite/component.cpp File Reference

Composite AI component. More...

#include "component.hpp"
#include "engine.hpp"
#include "property_handler.hpp"
#include "../../config.hpp"
#include "../../log.hpp"
#include "../../foreach.hpp"
#include "../formula/ai.hpp"
#include <boost/lexical_cast.hpp>
#include <boost/regex.hpp>
Include dependency graph for component.cpp:

Go to the source code of this file.

Namespaces

namespace  pathfind
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_COMPONENT   LOG_STREAM(debug, log_ai_component)
#define LOG_AI_COMPONENT   LOG_STREAM(info, log_ai_component)
#define ERR_AI_COMPONENT   LOG_STREAM(err, log_ai_component)

Functions

static component * ai::find_component (component *root, const std::string &path, path_element &tail)
static void ai::print_component (component *root, const std::string &type, std::stringstream &s, int offset)
std::ostream & operator<< (std::ostream &o, const ai::path_element &e)

Variables

static lg::log_domain ai::log_ai_component ("ai/component")

Detailed Description

Composite AI component.

Definition in file component.cpp.


Define Documentation

#define DBG_AI_COMPONENT   LOG_STREAM(debug, log_ai_component)

Definition at line 42 of file component.cpp.

#define ERR_AI_COMPONENT   LOG_STREAM(err, log_ai_component)

Definition at line 44 of file component.cpp.

Referenced by ai::component_manager::print_component_tree().

#define LOG_AI_COMPONENT   LOG_STREAM(info, log_ai_component)

Definition at line 43 of file component.cpp.


Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const ai::path_element e 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:03:21 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs