Class ActionNode
- Namespace
- LibGameAI.DecisionTrees
- Assembly
- DecisionTrees.dll
An action node in a decision tree.
public class ActionNode : IDecisionTreeNode
- Inheritance
-
ActionNode
- Implements
- Inherited Members
Constructors
ActionNode(Action)
Create a new game action node.
public ActionNode(Action gameAction)
Parameters
gameAction
ActionDelegate to function which will execute the actual game action.
Methods
Execute()
Execute the game action.
public void Execute()
MakeDecision()
An action node is always a leaf on the tree, so it will return itself.
public IDecisionTreeNode MakeDecision()
Returns
- IDecisionTreeNode
Returns itself.