◆ 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
-
prefabOptions | prefabs mapped with evaluators |
selectionMethod | utility selection method (MAX or ROULETTE) - ROULLETTE unavailable for now |
persistence | bonus score that currently executed behavior(or behavior from the top of the stack) gains (persistence of 0 give no bonus at all) |
◆ SelectBehavior()
override void Grail.UtilityReasoner.SelectBehavior |
( |
AIEntity |
entity | ) |
|
|
inlinevirtual |
Runs reasoner's selection algorithm and assigns chosen behavior to provided entity.
- Parameters
-
Implements Grail.Reasoner.
The documentation for this class was generated from the following file:
- GrailUtilityAI/source/Reasoners/UtilityReasoner.cs