(C++)  1.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
grail::ConfigInterpreter Class Reference

A class used to construct entities and entity groups based on configuration data. More...

#include <ConfigHelpers.h>

Public Member Functions

 ConfigInterpreter (const GrailConfiguration &configuration, const std::vector< std::shared_ptr< IReasonerFactory >> reasonerFactories)
 Constructs a config interpreter with user-provided reasoner factories More...
 
 ConfigInterpreter (const GrailConfiguration &configuration, const std::shared_ptr< const IConsiderationProvider > &considerationProvider, const std::vector< BehaviorPrefab > &behaviorPrefabs)
 Use this constructor if you want to use UtilityReasoners defined in the config struct More...
 
std::shared_ptr< class EntityGroupCreateEntityGroup (const std::string &entityGroupName) const
 Creates an entity group based on config data and a string id.
 
std::shared_ptr< AIEntityCreateEntity (const std::string &entityName) const
 Creates an entity based on config data and a string id.
 
const GrailConfigurationGetConfiguration () const
 

Detailed Description

A class used to construct entities and entity groups based on configuration data.

Constructor & Destructor Documentation

grail::ConfigInterpreter::ConfigInterpreter ( const GrailConfiguration configuration,
const std::vector< std::shared_ptr< IReasonerFactory >>  reasonerFactories 
)

Constructs a config interpreter with user-provided reasoner factories

Parameters
configuration
reasonerFactories
grail::ConfigInterpreter::ConfigInterpreter ( const GrailConfiguration configuration,
const std::shared_ptr< const IConsiderationProvider > &  considerationProvider,
const std::vector< BehaviorPrefab > &  behaviorPrefabs 
)

Use this constructor if you want to use UtilityReasoners defined in the config struct

Parameters
configuration
considerationProvider
behaviorPrefabs
reasonerFactories

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