The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
ai::aspect_factory Class Referenceabstract

#include <aspect.hpp>

Inheritance diagram for ai::aspect_factory:
Inheritance graph

Public Types

typedef std::shared_ptr
< aspect_factory
typedef std::map< std::string,
typedef std::pair< const
std::string, factory_ptr

Public Member Functions

virtual aspect_ptr get_new_instance (readonly_context &context, const config &cfg, const std::string &id)=0
 aspect_factory (const std::string &name)
virtual ~aspect_factory ()

Static Public Member Functions

static factory_mapget_list ()

Private Member Functions

bool is_duplicate (const std::string &name)

Detailed Description

Definition at line 472 of file aspect.hpp.

Member Typedef Documentation

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

Definition at line 476 of file aspect.hpp.

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

Definition at line 477 of file aspect.hpp.

typedef std::shared_ptr< aspect_factory > ai::aspect_factory::factory_ptr

Definition at line 475 of file aspect.hpp.

Constructor & Destructor Documentation

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

Definition at line 489 of file aspect.hpp.

References get_list(), and is_duplicate().

virtual ai::aspect_factory::~aspect_factory ( )

Definition at line 498 of file aspect.hpp.

Member Function Documentation

static factory_map& ai::aspect_factory::get_list ( )
virtual aspect_ptr ai::aspect_factory::get_new_instance ( readonly_context context,
const config cfg,
const std::string &  id 
pure virtual
bool ai::aspect_factory::is_duplicate ( const std::string &  name)

Definition at line 172 of file aspect.cpp.

References ERR_AI_ASPECT, gui2::event::find(), and get_list().

Referenced by aspect_factory().

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