DecisionFlex
Utilty AI for Unity
 All Classes Namespaces Functions Variables Events Pages
Protected Member Functions | List of all members
TenPN.DecisionFlex.BinaryContextConsideration Class Reference

Evaulate a context value in relation to a gate, and return one of two scores depending on the result. More...

Inheritance diagram for TenPN.DecisionFlex.BinaryContextConsideration:
TenPN.DecisionFlex.Consideration

Protected Member Functions

override float MakeConsideration (IContext context)
 

Additional Inherited Members

- Public Member Functions inherited from TenPN.DecisionFlex.Consideration
float Consider (IContext context)
 

Detailed Description

Evaulate a context value in relation to a gate, and return one of two scores depending on the result.

For example, fetch the ammoCount string from the IContext, and if it is greater than zero return a score of one (saying this action can go ahead), otherwise return a score of zero (saying this action can't possibly go ahead).

Member Function Documentation

override float TenPN.DecisionFlex.BinaryContextConsideration.MakeConsideration ( IContext  context)
inlineprotectedvirtual

Score this IContext. Called once per IContext produced by the ContextFactory during a decision.

Returns
Score should not be less than 0, and is normally less than 1. In some cases, returning more than 1 might be desired to drown out other activities.

Implements TenPN.DecisionFlex.Consideration.


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