The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
ai::component Class Referenceabstract

#include <component.hpp>

Inheritance diagram for ai::component:
Inheritance graph

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 57 of file component.hpp.

Constructor & Destructor Documentation

ai::component::component ( )
inline

Definition at line 59 of file component.hpp.

virtual ai::component::~component ( )
inlinevirtual

Definition at line 67 of file component.hpp.

Member Function Documentation

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

Definition at line 81 of file component.cpp.

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

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

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

Definition at line 91 of file component.cpp.

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

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

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

Definition at line 101 of file component.cpp.

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

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

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

Definition at line 71 of file component.cpp.

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

Referenced by ai::find_component().

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

Definition at line 111 of file component.cpp.

References i, and property_handlers_.

Referenced by intf_debug_ai(), ai::print_component(), and push_component().

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

Definition at line 122 of file component.cpp.

References property_handlers_.

Referenced by ai::print_component(), and push_component().

virtual std::string ai::component::get_engine ( ) const
pure virtual
virtual std::string ai::component::get_id ( ) const
pure virtual
virtual std::string ai::component::get_name ( ) const
pure virtual
property_handler_map & ai::component::property_handlers ( )

Member Data Documentation

property_handler_map ai::component::property_handlers_
private

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