Class LeafTask
- java.lang.Object
-
- com.runemate.game.api.script.framework.tree.TreeTask
-
- com.runemate.game.api.script.framework.tree.LeafTask
-
public abstract class LeafTask extends TreeTask
This class provides a task that is meant to be the leaf of a task tree. It has no children and is always executed if evaluated.
-
-
Constructor Summary
Constructors Constructor Description LeafTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TreeTask
failureTask()
No children allowed.boolean
isLeaf()
This is ALWAYS a leaf.TreeTask
successTask()
No children allowed.boolean
validate()
This will always be executed if evaluated.
-
-
-
Method Detail
-
isLeaf
public final boolean isLeaf()
This is ALWAYS a leaf.
-
validate
public final boolean validate()
This will always be executed if evaluated.
-
successTask
public final TreeTask successTask()
No children allowed.- Specified by:
successTask
in classTreeTask
- Returns:
- null
-
failureTask
public final TreeTask failureTask()
No children allowed.- Specified by:
failureTask
in classTreeTask
- Returns:
- null
-
-