Grail (C#)  1.3.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
Grail.Utility.RouletteSelector Class Reference

Tool responsible for selecting most suitable objects based on calculated scores. More...

Static Public Member Functions

static void GetBestOption< ContextType > (in List< SelectionOption< ContextType >> options, ref SelectionResult result, RandomNumberGenerator randomNumberGenerator, RouletteOptions rouletteOptions, UtilityReasoner.Validator validator)
 Selects most suitable option. Provides different context for each evaluated objects. More...
 

Detailed Description

Tool responsible for selecting most suitable objects based on calculated scores.

Member Function Documentation

◆ GetBestOption< ContextType >()

static void Grail.Utility.RouletteSelector.GetBestOption< ContextType > ( in List< SelectionOption< ContextType >>  options,
ref SelectionResult  result,
RandomNumberGenerator  randomNumberGenerator,
RouletteOptions  rouletteOptions,
UtilityReasoner.Validator  validator 
)
inlinestatic

Selects most suitable option. Provides different context for each evaluated objects.

Parameters
optionsContexts paired with evaluators.
resultReference to the selection result object.
validatorFunction validating whether given object can be chosen.
Template Parameters
ContextTypeType of evaluated object. By default - ValueTuple(AIEntity, Blackboard).

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