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::candidate_action_factory Class Referenceabstract

#include <rca.hpp>

Inheritance diagram for ai::candidate_action_factory:
Inheritance graph

Public Types

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

Public Member Functions

virtual candidate_action_ptr get_new_instance (rca_context &context, const config &cfg)=0
 candidate_action_factory (const std::string &name)
virtual ~candidate_action_factory ()

Static Public Member Functions

static factory_mapget_list ()

Private Member Functions

bool is_duplicate (const std::string &name)

Detailed Description

Definition at line 151 of file rca.hpp.

Member Typedef Documentation

Definition at line 155 of file rca.hpp.

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

Definition at line 156 of file rca.hpp.

Definition at line 154 of file rca.hpp.

Constructor & Destructor Documentation

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

Definition at line 168 of file rca.hpp.

References get_list(), and is_duplicate().

virtual ai::candidate_action_factory::~candidate_action_factory ( )

Definition at line 177 of file rca.hpp.

Member Function Documentation

static factory_map& ai::candidate_action_factory::get_list ( )
virtual candidate_action_ptr ai::candidate_action_factory::get_new_instance ( rca_context context,
const config cfg 
pure virtual
bool ai::candidate_action_factory::is_duplicate ( const std::string &  name)

Definition at line 112 of file rca.cpp.

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

Referenced by candidate_action_factory().

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