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

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

Inheritance diagram for TenPN.DecisionFlex.BooleanConsideration:
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 bool, and return one of two scores depending on the result.

For example, fetch the isAlive string from the IContext, and if it is true 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.BooleanConsideration.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: