The Battle for Wesnoth  1.19.0-dev
Static Public Member Functions | List of all members
ai::component_manager Class Reference

#include <component.hpp>

Static Public Member Functions

static bool add_component (component *root, const std::string &path, const config &cfg)
 
static bool change_component (component *root, const std::string &path, const config &cfg)
 
static bool delete_component (component *root, const std::string &path)
 
static std::string print_component_tree (component *root, const std::string &path)
 
static componentget_component (component *root, const std::string &path)
 

Detailed Description

Definition at line 74 of file component.hpp.

Member Function Documentation

◆ add_component()

bool ai::component_manager::add_component ( component root,
const std::string &  path,
const config cfg 
)
static

◆ change_component()

bool ai::component_manager::change_component ( component root,
const std::string &  path,
const config cfg 
)
static

◆ delete_component()

bool ai::component_manager::delete_component ( component root,
const std::string &  path 
)
static

Definition at line 201 of file component.cpp.

References c, ai::find_component(), and game_config::path.

Referenced by ai::holder::modify_ai().

◆ get_component()

component * ai::component_manager::get_component ( component root,
const std::string &  path 
)
static

Definition at line 249 of file component.cpp.

References ai::find_component(), and game_config::path.

Referenced by ai::holder::get_component().

◆ print_component_tree()

std::string ai::component_manager::print_component_tree ( component root,
const std::string &  path 
)
static

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