The Battle for Wesnoth  1.19.5+dev
Public Member Functions | Private Attributes | List of all members
ai::component Class Referenceabstract

#include <component.hpp>

Inheritance diagram for ai::component:

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

Constructor & Destructor Documentation

◆ component()

ai::component::component ( )
inline

Definition at line 52 of file component.hpp.

◆ ~component()

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

Definition at line 60 of file component.hpp.

Member Function Documentation

◆ add_child()

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

◆ change_child()

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

Definition at line 79 of file component.cpp.

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

◆ delete_child()

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

Definition at line 88 of file component.cpp.

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

◆ get_child()

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

Definition at line 61 of file component.cpp.

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

◆ get_children()

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

Definition at line 97 of file component.cpp.

References i, and property_handlers_.

Referenced by ai::print_component().

◆ get_children_types()

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

Definition at line 107 of file component.cpp.

References property_handlers_.

Referenced by ai::print_component().

◆ get_engine()

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

◆ get_id()

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

◆ get_name()

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

◆ property_handlers()

property_handler_map & ai::component::property_handlers ( )

Member Data Documentation

◆ property_handlers_

property_handler_map ai::component::property_handlers_
private

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