grail (C  1.0.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
Grail.UtilityReasoner Class Reference
Inheritance diagram for Grail.UtilityReasoner:
Collaboration diagram for Grail.UtilityReasoner:

Public Member Functions

 UtilityReasoner (Dictionary< IEvaluator< EntityBlackboardPair >, BehaviorPrefab > prefabOptions, UtilitySelectionMethod selectionMethod=UtilitySelectionMethod.MAX, float persistence=0.1f)
 UtilityReasoner - selects behaviors based on their scores calculated by utility system More...
 
override void SelectBehavior (AIEntity entity)
 Runs reasoner's selection algorithm and assigns chosen behavior to provided entity. More...
 
void SetSnapshotProduction (bool val)
 
UtilityReasonerSnapshot GetUtilityReasonerSnapshot ()
 
override ISnapshotGenerator CreateSnapshotGenerator (int entityId)
 

Constructor & Destructor Documentation

◆ UtilityReasoner()

Grail.UtilityReasoner.UtilityReasoner ( Dictionary< IEvaluator< EntityBlackboardPair >, BehaviorPrefab prefabOptions,
UtilitySelectionMethod  selectionMethod = UtilitySelectionMethod.MAX,
float  persistence = 0.1f 
)
inline

UtilityReasoner - selects behaviors based on their scores calculated by utility system

Parameters
prefabOptionsprefabs mapped with evaluators
selectionMethodutility selection method (MAX or ROULETTE) - ROULLETTE unavailable for now
persistencebonus score that currently executed behavior(or behavior from the top of the stack) gains (persistence of 0 give no bonus at all)

Member Function Documentation

◆ SelectBehavior()

override void Grail.UtilityReasoner.SelectBehavior ( AIEntity  entity)
inlinevirtual

Runs reasoner's selection algorithm and assigns chosen behavior to provided entity.

Parameters
entity

Implements Grail.Reasoner.


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