Grail (C++)  1.4.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
grail::utility::BlueprintOption< InstanceType, ContextType, DataType > Struct Template Reference
Collaboration diagram for grail::utility::BlueprintOption< InstanceType, ContextType, DataType >:

Public Member Functions

 BlueprintOption (const std::shared_ptr< evaluator::Evaluator< ContextType >> &evaluator, utility::Blueprint< InstanceType, ContextType, DataType > &&behaviorBlueprint, int rank)
 BlueprintOption - Constructor. More...
 
 BlueprintOption (const std::shared_ptr< evaluator::Evaluator< ContextType >> &evaluator, const utility::Blueprint< InstanceType, ContextType, DataType > &behaviorBlueprint, int rank)
 BlueprintOption - Constructor. More...
 

Public Attributes

std::shared_ptr< evaluator::Evaluator< ContextType > > evaluator
 Evaluator for this option.
 
utility::Blueprint< InstanceType, ContextType, DataType > behaviorBlueprint
 Blueprint for this option.
 
int rank
 Rank - measure of importance of evaluated object. Only objects with highest available rank may be selected.
 

Constructor & Destructor Documentation

◆ BlueprintOption() [1/2]

template<typename InstanceType , typename ContextType , typename DataType >
grail::utility::BlueprintOption< InstanceType, ContextType, DataType >::BlueprintOption ( const std::shared_ptr< evaluator::Evaluator< ContextType >> &  evaluator,
utility::Blueprint< InstanceType, ContextType, DataType > &&  behaviorBlueprint,
int  rank 
)
inline

BlueprintOption - Constructor.

Parameters
evaluator- Evaluator used for evaluating generated options.
behaviorBlueprint- BehaviorBlueprint for producing behavior contexts and instances.
rank- Rank used to prioritise options. Higher ranked options are chosen over lower ranked ones, before taking into account evaluation.

◆ BlueprintOption() [2/2]

template<typename InstanceType , typename ContextType , typename DataType >
grail::utility::BlueprintOption< InstanceType, ContextType, DataType >::BlueprintOption ( const std::shared_ptr< evaluator::Evaluator< ContextType >> &  evaluator,
const utility::Blueprint< InstanceType, ContextType, DataType > &  behaviorBlueprint,
int  rank 
)
inline

BlueprintOption - Constructor.

Parameters
evaluator- Evaluator used for evaluating generated options.
behaviorBlueprint- BehaviorBlueprint for producing behavior contexts and instances.
rank- Rank used to prioritise options. Higher ranked options are chosen over lower ranked ones, before taking into account evaluation.

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