Package org.dreambot.api.script
Class TaskNode
- java.lang.Object
-
- org.dreambot.api.methods.MethodProvider
-
- org.dreambot.api.script.TaskNode
-
public abstract class TaskNode extends MethodProvider
Created with IntelliJ IDEA. User: NotoriousPP Date: 11/25/2014 Time: 5:05 PM
-
-
Constructor Summary
Constructors Constructor Description TaskNode()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
accept()
The conditional boolean which determines if the node should execute.abstract int
execute()
The actions that should execute when all conditions are met.int
priority()
The priority of which the node should be executed; Higher priority value means higher priority to be executed.-
Methods inherited from class org.dreambot.api.methods.MethodProvider
debug, error, getRandomManager, getScriptManager, info, isUserSponsor, isUserVIP, log, print, sleep, sleep, sleepUntil, sleepUntil, sleepWhile, sleepWhile
-
-
-
-
Method Detail
-
priority
public int priority()
The priority of which the node should be executed; Higher priority value means higher priority to be executed.- Returns:
- int value of the priority
-
accept
public abstract boolean accept()
The conditional boolean which determines if the node should execute.- Returns:
- true if all conditions are met, otherwise false.
-
execute
public abstract int execute()
The actions that should execute when all conditions are met.- Returns:
- the amount of time in ms to delay after execution, < 0 will stop the script.
-
-