#include <goal.hpp>
Public Types | |
typedef std::shared_ptr< goal_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 goal_ptr | get_new_instance (readonly_context &context, const config &cfg)=0 |
goal_factory (const std::string &name) | |
virtual | ~goal_factory () |
Static Public Member Functions | |
static factory_map & | get_list () |
Private Member Functions | |
bool | is_duplicate (const std::string &name) |
typedef std::map<std::string, factory_ptr> ai::goal_factory::factory_map |
typedef std::pair<const std::string, factory_ptr> ai::goal_factory::factory_map_pair |
typedef std::shared_ptr< goal_factory > ai::goal_factory::factory_ptr |
|
inline |
Definition at line 168 of file goal.hpp.
References get_list(), and is_duplicate().
|
inlinestatic |
Definition at line 158 of file goal.hpp.
Referenced by ai::engine_lua::do_parse_goal_from_config(), ai::engine_cpp::do_parse_goal_from_config(), goal_factory(), and is_duplicate().
|
pure virtual |
Implemented in ai::register_goal_factory< GOAL >.
|
private |
Definition at line 326 of file goal.cpp.
References ERR_AI_GOAL, utils::find(), and get_list().
Referenced by goal_factory().