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

Represents one decision to be made with the DecisionFlex system. More...

Inheritance diagram for TenPN.DecisionFlex.DecisionFlex:

Public Member Functions

ActionSelection PerformAction ()
 call this, or send "PerformAction" event to this gameobject, to score, select and perform an action. More...
 
void ClearContextScores ()
 

Properties

IEnumerable< ActionSelectionAllLastSelections [get]
 

Events

Action< ActionSelectionOnNewAction
 subscribe to this event to be told when an action is chosen, just after the action is performed
 

Detailed Description

Represents one decision to be made with the DecisionFlex system.

Create a dedicated gameobject for your decision, and add this to it. Also add a derived class of ActionSelector.

See structure for more info.

Member Function Documentation

ActionSelection TenPN.DecisionFlex.DecisionFlex.PerformAction ( )
inline

call this, or send "PerformAction" event to this gameobject, to score, select and perform an action.

actually, it can be more than one action if the action gameobject contains more than one IAction.

Returns the winning action, score and context. Or ActionSelection.Invalid if no winner.


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