java.lang.Object
com.marginallyclever.ro3.node.Node
com.marginallyclever.ro3.node.nodes.behavior.BehaviorTreeRunner

public class BehaviorTreeRunner extends Node

BehaviorTreeRunner is a node that runs a behavior tree.

version 1, behave like a Sequence.

  • Constructor Details

    • BehaviorTreeRunner

      public BehaviorTreeRunner()
    • BehaviorTreeRunner

      public BehaviorTreeRunner(String name)
  • Method Details

    • update

      public void update(double dt)
      Description copied from class: Node
      Called every frame.
      Overrides:
      update in class Node
      Parameters:
      dt - the time since the last frame.
    • resetAll

      public void resetAll()
    • getIcon

      public Icon getIcon()
      Description copied from class: Node
      Set a custom icon for this node.
      Overrides:
      getIcon in class Node
      Returns:
      the icon, or null if none.
    • isRunning

      public boolean isRunning()
    • setRunning

      public void setRunning(boolean running)
    • addActionListener

      public void addActionListener(ActionListener listener)
    • removeActionListener

      public void removeActionListener(ActionListener listener)
    • getComponents

      public void getComponents(List<JPanel> list)
      Description copied from class: Node
      Build a Swing Component that represents this Node.
      Overrides:
      getComponents in class Node
      Parameters:
      list - the list to add components to.