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 | 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 boost::shared_ptr
< lua_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, boost::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 510 of file aspect.hpp.

Member Typedef Documentation

Definition at line 513 of file aspect.hpp.

Definition at line 514 of file aspect.hpp.

Definition at line 512 of file aspect.hpp.

Constructor & Destructor Documentation

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

Definition at line 526 of file aspect.hpp.

References get_list().

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

Definition at line 532 of file aspect.hpp.

Member Function Documentation

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

Definition at line 516 of file aspect.hpp.

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

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

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