java.lang.Object
net.botwithus.rs3.btree.TreeNode<S>
- Type Parameters:
S
- the script type
- All Implemented Interfaces:
TreeNodeSkin
- Direct Known Subclasses:
ComponentActionNode
,MiniMenuActionNode
,NpcActionNode
,SceneObjectActionNode
,TraverseNode
A node in a binary tree that can be evaluated
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
TreeNode.Builder<S extends Script>
A builder for a tree node -
Constructor Summary
-
Method Summary
-
Constructor Details
-
TreeNode
public TreeNode(Predicate<S> predicate, TreeNode<S> left, TreeNode<S> right, TreeNodePredicateListener<S> listener, TreeNodeSkin skin) -
TreeNode
-
-
Method Details
-
isLeaf
public boolean isLeaf()Returns true if the node is a leaf- Returns:
- true if the node is a leaf
-
cache
Returns the cache for the node- Returns:
- the cache for the node
-
draw
Draw the node- Specified by:
draw
in interfaceTreeNodeSkin
- Parameters:
node
- the node to draw
-