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

Base class for considerations that evaluate a context value through an animation curve. More...

Inheritance diagram for TenPN.DecisionFlex.ContextValueConsideration:
TenPN.DecisionFlex.Consideration TenPN.DecisionFlex.FloatConsideration TenPN.DecisionFlex.IntConsideration

Protected Member Functions

override float MakeConsideration (IContext context)
 
abstract float GetValue (IContext context)
 

Properties

string ContextName [get]
 

Additional Inherited Members

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

Detailed Description

Base class for considerations that evaluate a context value through an animation curve.

Good for normalising a value into a score in a data-driven way. The majority of your considerations will probaly be derived from this class.

Member Function Documentation

override float TenPN.DecisionFlex.ContextValueConsideration.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: