The Battle for Wesnoth  1.15.0-dev
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 51 of file component.hpp.

Constructor & Destructor Documentation

◆ component()

ai::component::component ( )
inline

Definition at line 53 of file component.hpp.

References ai::get_engine(), and hotkey::get_id().

◆ ~component()

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

Definition at line 61 of file component.hpp.

References preferences::get_child().

Member Function Documentation

◆ add_child()

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

Definition at line 81 of file component.cpp.

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

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

◆ change_child()

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

Definition at line 91 of file component.cpp.

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

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

◆ delete_child()

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

Definition at line 101 of file component.cpp.

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

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

◆ get_child()

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

Definition at line 71 of file component.cpp.

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

Referenced by ai::find_component().

◆ get_children()

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

Definition at line 111 of file component.cpp.

References i.

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

◆ get_children_types()

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

Definition at line 122 of file component.cpp.

Referenced by ai::print_component(), and push_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

Definition at line 72 of file component.hpp.


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