Package org.dreambot.api.randoms
Class BreakSolver
- java.lang.Object
-
- org.dreambot.api.randoms.RandomSolver
-
- org.dreambot.api.randoms.BreakSolver
-
- All Implemented Interfaces:
java.util.EventListener
,PaintListener
public class BreakSolver extends RandomSolver implements PaintListener, java.util.EventListener
Break Solver/Handler class.
-
-
Constructor Summary
Constructors Constructor Description BreakSolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isBreakRunning()
void
onClick(java.awt.Point point)
int
onLoop()
Runs as long as shouldExecute returns true; This method must be overriddenvoid
onPaint(java.awt.Graphics graphics)
Handles the graphic for the script.boolean
shouldExecute()
Checks whether the random even solver should execute; This method must be overridden-
Methods inherited from class org.dreambot.api.randoms.RandomSolver
disable, enable, getDebugInfo, getEventString, getMinimumRest, isEnabled, isForceDisable, lastRan, onFinish, onPaint, onStart, setForceDisable
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dreambot.api.script.listener.PaintListener
onPaint
-
-
-
-
Method Detail
-
shouldExecute
public boolean shouldExecute()
Checks whether the random even solver should execute; This method must be overridden- Specified by:
shouldExecute
in classRandomSolver
- Returns:
- true as long as the random executor should be executing
-
onLoop
public int onLoop()
Runs as long as shouldExecute returns true; This method must be overridden- Specified by:
onLoop
in classRandomSolver
- Returns:
- time to delay before next onLoop
-
onPaint
public void onPaint(java.awt.Graphics graphics)
Description copied from interface:PaintListener
Handles the graphic for the script.- Specified by:
onPaint
in interfacePaintListener
- Overrides:
onPaint
in classRandomSolver
- Parameters:
graphics
- The Graphics instance sent from the canvas.
-
onClick
public void onClick(java.awt.Point point)
-
isBreakRunning
public boolean isBreakRunning()
-
-