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 TypeMethodDescriptionvoid
addActionListener
(ActionListener listener) void
getComponents
(List<JPanel> list) Build a Swing Component that represents this Node.getIcon()
Set a custom icon for this node.boolean
void
removeActionListener
(ActionListener listener) void
resetAll()
void
setRunning
(boolean running) void
update
(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:Node
Build a Swing Component that represents this Node.- Overrides:
getComponents
in classNode
- Parameters:
list
- the list to add components to.
-