Represents one decision to be made with the DecisionFlex system. More...
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< ActionSelection > | AllLastSelections [get] |
Events | |
Action< ActionSelection > | OnNewAction |
subscribe to this event to be told when an action is chosen, just after the action is performed | |
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.
|
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.