The Battle for Wesnoth  1.15.2+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:
Inheritance graph

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 508 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 511 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 512 of file aspect.hpp.

◆ factory_ptr

Definition at line 510 of file aspect.hpp.

Constructor & Destructor Documentation

◆ lua_aspect_factory()

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

Definition at line 524 of file aspect.hpp.

◆ ~lua_aspect_factory()

virtual ai::lua_aspect_factory::~lua_aspect_factory ( )
inlinevirtual

Definition at line 530 of file aspect.hpp.

Member Function Documentation

◆ get_list()

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

Definition at line 514 of file aspect.hpp.

Referenced by ai::engine_lua::do_parse_aspect_from_config().

◆ 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: