20 #ifndef AI_COMPOSITE_ENGINE_LUA_HPP_INCLUDED
21 #define AI_COMPOSITE_ENGINE_LUA_HPP_INCLUDED
std::string code_
Method to inject AI context into the engine.
AI Support engine - creating specific ai components from config.
std::string get_engine_code(const config &) const
engine_lua(readonly_context &context, const config &cfg)
Note that initially we get access only to readonly context (engine is created rather early...
virtual config to_config() const
Serialize to config.
GLdouble GLdouble GLdouble b
A small explanation about what's going on here: Each action has access to two game_info objects First...
virtual void do_parse_goal_from_config(const config &cfg, std::back_insert_iterator< std::vector< goal_ptr > > b)
virtual void do_parse_aspect_from_config(const config &cfg, const std::string &id, std::back_insert_iterator< std::vector< aspect_ptr > > b)
Taka a config (with engine=lua in it) and parse several (usually, 1) aspects out of it...
virtual void do_parse_stage_from_config(ai_context &context, const config &cfg, std::back_insert_iterator< std::vector< stage_ptr > > b)
Taka a config (with engine=lua in it) and parse several (usually, 1) stages out of it...
virtual void push_ai_table()
Method that pushes the AI table of the lua_context on the stack for debugging purposes.
boost::shared_ptr< lua_ai_context > lua_ai_context_
virtual void do_parse_candidate_action_from_config(rca_context &context, const config &cfg, std::back_insert_iterator< std::vector< candidate_action_ptr > > b)
Taka a config (with engine=lua in it) and parse several (usually, 1) candidate actions out of it...
virtual std::string evaluate(const std::string &str)
A config object defines a single node in a WML file, with access to child nodes.
GLsizei const GLcharARB ** string