Classes | Namespaces | Defines | Typedefs | Variables

ai/composite/engine_lua.cpp File Reference

LUA AI Support engine - creating specific ai components from config. More...

#include "ai.hpp"
#include "engine_lua.hpp"
#include "goal.hpp"
#include "rca.hpp"
#include "stage.hpp"
#include "aspect.hpp"
#include "../gamestate_observer.hpp"
#include "../../log.hpp"
#include "../../resources.hpp"
#include "../lua/core.hpp"
#include "../lua/lua_object.hpp"
#include "../../scripting/lua.hpp"
#include "../../util.hpp"
#include "../../unit.hpp"
#include "../../unit_map.hpp"
Include dependency graph for engine_lua.cpp:

Go to the source code of this file.

Classes

class  ai::lua_candidate_action_wrapper
class  ai::lua_sticky_candidate_action_wrapper
class  ai::lua_stage_wrapper

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_LUA   LOG_STREAM(debug, log_ai_engine_lua)
#define LOG_AI_LUA   LOG_STREAM(info, log_ai_engine_lua)
#define WRN_AI_LUA   LOG_STREAM(warn, log_ai_engine_lua)
#define ERR_AI_LUA   LOG_STREAM(err, log_ai_engine_lua)

Typedefs

typedef boost::shared_ptr
< lua_object< int > > 
ai::lua_int_obj

Variables

static lg::log_domain ai::log_ai_engine_lua ("ai/engine/lua")

Detailed Description

LUA AI Support engine - creating specific ai components from config.

Definition in file engine_lua.cpp.


Define Documentation

#define DBG_AI_LUA   LOG_STREAM(debug, log_ai_engine_lua)

Definition at line 32 of file engine_lua.cpp.

Referenced by ai::engine_lua::evaluate().

#define ERR_AI_LUA   LOG_STREAM(err, log_ai_engine_lua)

Definition at line 35 of file engine_lua.cpp.

Referenced by ai::engine_lua::evaluate().

#define LOG_AI_LUA   LOG_STREAM(info, log_ai_engine_lua)

Definition at line 33 of file engine_lua.cpp.

#define WRN_AI_LUA   LOG_STREAM(warn, log_ai_engine_lua)

Definition at line 34 of file engine_lua.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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