The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
ai::engine_cpp Class Reference

#include <engine_cpp.hpp>

Inheritance diagram for ai::engine_cpp:
Inheritance graph

Public Member Functions

 engine_cpp (readonly_context &context, const config &cfg)
 
virtual ~engine_cpp ()
 
void do_parse_aspect_from_config (const config &cfg, const std::string &id, std::back_insert_iterator< std::vector< aspect_ptr > > b)
 
virtual void do_parse_candidate_action_from_config (rca_context &context, const config &cfg, std::back_insert_iterator< std::vector< candidate_action_ptr > > b)
 
virtual void do_parse_stage_from_config (ai_context &context, const config &cfg, std::back_insert_iterator< std::vector< stage_ptr > > b)
 
virtual void do_parse_goal_from_config (const config &cfg, std::back_insert_iterator< std::vector< goal_ptr > > b)
 
virtual void do_parse_engine_from_config (const config &cfg, std::back_insert_iterator< std::vector< engine_ptr > > b)
 
- Public Member Functions inherited from ai::engine
 engine (readonly_context &context, const config &cfg)
 
virtual ~engine ()
 
virtual bool is_ok () const
 
virtual std::string evaluate (const std::string &str)
 
readonly_contextget_readonly_context ()
 
virtual void set_ai_context (ai_context_ptr context)
 set ai context (which is not available during early initialization) More...
 
virtual ai_context_ptr get_ai_context ()
 
virtual config to_config () const
 serialize More...
 
virtual std::string get_id () const
 
virtual std::string get_engine () const
 
virtual std::string get_name () const
 
- Public Member Functions inherited from ai::component
 component ()
 
virtual ~component ()
 
virtual componentget_child (const path_element &child)
 
virtual std::vector< component * > get_children (const std::string &type)
 
virtual std::vector< std::stringget_children_types ()
 
virtual bool change_child (const path_element &child, const config &cfg)
 
virtual bool add_child (const path_element &child, const config &cfg)
 
virtual bool delete_child (const path_element &child)
 
property_handler_mapproperty_handlers ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ai::engine
static void parse_aspect_from_config (readonly_context &context, const config &cfg, const std::string &id, std::back_insert_iterator< std::vector< aspect_ptr > > b)
 
static void parse_goal_from_config (readonly_context &context, const config &cfg, std::back_insert_iterator< std::vector< goal_ptr > > b)
 
static void parse_candidate_action_from_config (rca_context &context, const config &cfg, std::back_insert_iterator< std::vector< candidate_action_ptr > > b)
 
static void parse_engine_from_config (readonly_context &context, const config &cfg, std::back_insert_iterator< std::vector< engine_ptr > > b)
 
static void parse_stage_from_config (ai_context &context, const config &cfg, std::back_insert_iterator< std::vector< stage_ptr > > b)
 
- Protected Attributes inherited from ai::engine
readonly_contextai_
 
ai_context_ptr ai_context_
 
std::string engine_
 name of the engine which has created this engine More...
 
std::string id_
 
std::string name_
 

Detailed Description

Definition at line 28 of file engine_cpp.hpp.

Constructor & Destructor Documentation

ai::engine_cpp::engine_cpp ( readonly_context context,
const config cfg 
)

Definition at line 35 of file engine_cpp.cpp.

References ai::engine::name_.

ai::engine_cpp::~engine_cpp ( )
virtual

Definition at line 41 of file engine_cpp.cpp.

Member Function Documentation

void ai::engine_cpp::do_parse_aspect_from_config ( const config cfg,
const std::string id,
std::back_insert_iterator< std::vector< aspect_ptr > >  b 
)
virtual
void ai::engine_cpp::do_parse_candidate_action_from_config ( rca_context context,
const config cfg,
std::back_insert_iterator< std::vector< candidate_action_ptr > >  b 
)
virtual
void ai::engine_cpp::do_parse_engine_from_config ( const config cfg,
std::back_insert_iterator< std::vector< engine_ptr > >  b 
)
virtual
void ai::engine_cpp::do_parse_goal_from_config ( const config cfg,
std::back_insert_iterator< std::vector< goal_ptr > >  b 
)
virtual
void ai::engine_cpp::do_parse_stage_from_config ( ai_context context,
const config cfg,
std::back_insert_iterator< std::vector< stage_ptr > >  b 
)
virtual

The documentation for this class was generated from the following files: