The Battle for Wesnoth  1.19.1+dev
Public Types | Public Member Functions | Static Public Member Functions | List of all members
ai::lua_aspect_factory Class Referenceabstract

#include <aspect.hpp>

Inheritance diagram for ai::lua_aspect_factory:

Public Types

typedef std::shared_ptr< lua_aspect_factoryfactory_ptr
typedef std::map< std::string, factory_ptrfactory_map
typedef std::pair< const std::string, factory_ptrfactory_map_pair

Public Member Functions

virtual aspect_ptr get_new_instance (readonly_context &context, const config &cfg, const std::string &id, std::shared_ptr< lua_ai_context > &l_ctx)=0
 lua_aspect_factory (const std::string &name)
virtual ~lua_aspect_factory ()

Static Public Member Functions

static factory_mapget_list ()

Detailed Description

Definition at line 493 of file aspect.hpp.

Member Typedef Documentation

◆ factory_map

typedef std::map<std::string, factory_ptr> ai::lua_aspect_factory::factory_map

Definition at line 496 of file aspect.hpp.

◆ factory_map_pair

typedef std::pair<const std::string, factory_ptr> ai::lua_aspect_factory::factory_map_pair

Definition at line 497 of file aspect.hpp.

◆ factory_ptr

Definition at line 495 of file aspect.hpp.

Constructor & Destructor Documentation

◆ lua_aspect_factory()

ai::lua_aspect_factory::lua_aspect_factory ( const std::string &  name)

Definition at line 509 of file aspect.hpp.

References get_list().

◆ ~lua_aspect_factory()

virtual ai::lua_aspect_factory::~lua_aspect_factory ( )

Definition at line 515 of file aspect.hpp.

Member Function Documentation

◆ get_list()

static factory_map& ai::lua_aspect_factory::get_list ( )

Definition at line 499 of file aspect.hpp.

Referenced by ai::engine_lua::do_parse_aspect_from_config(), and lua_aspect_factory().

◆ get_new_instance()

virtual aspect_ptr ai::lua_aspect_factory::get_new_instance ( readonly_context context,
const config cfg,
const std::string &  id,
std::shared_ptr< lua_ai_context > &  l_ctx 
pure virtual

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