Class BehaviorTreeRunner
java.lang.Object
com.marginallyclever.ro3.node.Node
com.marginallyclever.ro3.node.nodes.behavior.BehaviorTreeRunner
BehaviorTreeRunner is a node that runs a behavior tree.
version 1, behave like a Sequence.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActionListener(ActionListener listener) voidgetComponents(List<JPanel> list) Build a Swing Component that represents this Node.getIcon()Set a custom icon for this node.booleanvoidremoveActionListener(ActionListener listener) voidresetAll()voidsetRunning(boolean running) voidupdate(double dt) Called every frame.Methods inherited from class com.marginallyclever.ro3.node.Node
addAttachListener, addChild, addChild, addDetachListener, addReadyListener, addRenameListener, findByPath, findChild, findChild, findFirstChild, findFirstSibling, findNodeByID, findParent, findParent, fromJSON, getAbsolutePath, getChildren, getName, getParent, getRootNode, getUniqueID, hasParent, isNameUsedBySibling, removeAttachListener, removeChild, removeDetachListener, removeReadyListener, removeRenameListener, setName, toJSON, witnessProtection
-
Constructor Details
-
BehaviorTreeRunner
public BehaviorTreeRunner() -
BehaviorTreeRunner
-
-
Method Details
-
update
-
resetAll
public void resetAll() -
getIcon
-
isRunning
public boolean isRunning() -
setRunning
public void setRunning(boolean running) -
addActionListener
-
removeActionListener
-
getComponents
Description copied from class:NodeBuild a Swing Component that represents this Node.- Overrides:
getComponentsin classNode- Parameters:
list- the list to add components to.
-