DecisionFlex
Utilty AI for Unity
 All Classes Namespaces Functions Variables Events Pages
Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
TenPN.DecisionFlex.ActionSelection Struct Reference

The snapshot of scoring all the considerations associated with a single action object. More...

Public Member Functions

 ActionSelection (float score, GameObject actionObject, IList< IAction > actions, IContext context)
 
bool IsBetterThan (float otherScore)
 
override string ToString ()
 

Public Attributes

float Score
 
GameObject ActionObject
 
IList< IActionActions
 
IContext Context
 

Static Public Attributes

static readonly ActionSelection Invalid = new ActionSelection()
 

Properties

bool IsValid [get]
 

Detailed Description

The snapshot of scoring all the considerations associated with a single action object.

A list of these, one per action object, is passed to the ActionSelector for this decision. The winning selection is returned from DecisionFlex.PerformAction and also via the TenPN.DecisionFlex.DecisionFlex OnNewAction "DecisionFlex.OnNewAction" callback.

Member Data Documentation

IList<IAction> TenPN.DecisionFlex.ActionSelection.Actions

since one action object can contain multiple actions, here they all are

IContext TenPN.DecisionFlex.ActionSelection.Context

the context used by the considerations to come to this score

float TenPN.DecisionFlex.ActionSelection.Score

the normalized score of the action object. not less than 0, normally less than 1


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