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

A consideration that always returns the same score, whatever context is given. More...

Inheritance diagram for TenPN.DecisionFlex.ConsiderationScalar:
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

A consideration that always returns the same score, whatever context is given.

Useful for capping the priority of an action.

Member Function Documentation

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