Public Member Functions | Private Attributes

ai::component Class Reference

#include <component.hpp>

Inheritance diagram for ai::component:
Inheritance graph
[legend]
Collaboration diagram for ai::component:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 component ()
virtual std::string get_id () const =0
virtual std::string get_name () const =0
virtual std::string get_engine () const =0
virtual ~component ()
virtual componentget_child (const path_element &child)
virtual std::vector< component * > get_children (const std::string &type)
virtual std::vector< std::string > get_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 ()

Private Attributes

property_handler_map property_handlers_

Detailed Description

Definition at line 60 of file component.hpp.


Constructor & Destructor Documentation

ai::component::component (  )  [inline]

Definition at line 62 of file component.hpp.

virtual ai::component::~component (  )  [inline, virtual]

Definition at line 70 of file component.hpp.


Member Function Documentation

bool ai::component::add_child ( const path_element child,
const config cfg 
) [virtual]

Definition at line 83 of file component.cpp.

References ai::path_element::property, and property_handlers_.

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

Here is the caller graph for this function:

bool ai::component::change_child ( const path_element child,
const config cfg 
) [virtual]

Definition at line 93 of file component.cpp.

References ai::path_element::property, and property_handlers_.

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

Here is the caller graph for this function:

bool ai::component::delete_child ( const path_element child  )  [virtual]

Definition at line 103 of file component.cpp.

References ai::path_element::property, and property_handlers_.

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

Here is the caller graph for this function:

component * ai::component::get_child ( const path_element child  )  [virtual]

Definition at line 73 of file component.cpp.

References ai::path_element::property, and property_handlers_.

Referenced by ai::find_component().

Here is the caller graph for this function:

std::vector< component * > ai::component::get_children ( const std::string &  type  )  [virtual]

Definition at line 113 of file component.cpp.

References property_handlers_.

Referenced by ai::print_component().

Here is the caller graph for this function:

std::vector< std::string > ai::component::get_children_types (  )  [virtual]

Definition at line 124 of file component.cpp.

References property_handlers_.

Referenced by ai::print_component().

Here is the caller graph for this function:

virtual std::string ai::component::get_engine (  )  const [pure virtual]

Implemented in ai::ai_composite, ai::aspect, ai::engine, ai::goal, ai::candidate_action, and ai::stage.

Referenced by ai::print_component().

Here is the caller graph for this function:

virtual std::string ai::component::get_id (  )  const [pure virtual]

Implemented in ai::ai_composite, ai::aspect, ai::engine, ai::goal, ai::candidate_action, and ai::stage.

Referenced by ai::print_component().

Here is the caller graph for this function:

virtual std::string ai::component::get_name (  )  const [pure virtual]

Implemented in ai::ai_composite, ai::aspect, ai::engine, ai::goal, ai::candidate_action, and ai::stage.

Referenced by ai::print_component().

Here is the caller graph for this function:

property_handler_map & ai::component::property_handlers (  ) 

Definition at line 134 of file component.cpp.

References property_handlers_.

Referenced by ai::composite_aspect< T >::composite_aspect(), and ai::testing_ai_default::candidate_action_evaluation_loop::on_create().

Here is the caller graph for this function:


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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