The Battle for Wesnoth  1.13.4+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 boost::shared_ptr
< aspect_factory
factory_ptr
 
typedef std::map< std::string,
factory_ptr
factory_map
 
typedef std::pair< const
std::string, factory_ptr
factory_map_pair
 

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 463 of file aspect.hpp.

Member Typedef Documentation

Definition at line 467 of file aspect.hpp.

Definition at line 468 of file aspect.hpp.

Definition at line 466 of file aspect.hpp.

Constructor & Destructor Documentation

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

Definition at line 480 of file aspect.hpp.

References get_list(), and is_duplicate().

virtual ai::aspect_factory::~aspect_factory ( )
inlinevirtual

Definition at line 489 of file aspect.hpp.

Member Function Documentation

static factory_map& ai::aspect_factory::get_list ( )
inlinestatic
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)
private

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: