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 booleanisBreakRunning()voidonClick(java.awt.Point point)intonLoop()Runs as long as shouldExecute returns true; This method must be overriddenvoidonPaint(java.awt.Graphics graphics)Handles the graphic for the script.booleanshouldExecute()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:
shouldExecutein 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:
onLoopin classRandomSolver- Returns:
- time to delay before next onLoop
-
onPaint
public void onPaint(java.awt.Graphics graphics)
Description copied from interface:PaintListenerHandles the graphic for the script.- Specified by:
onPaintin interfacePaintListener- Overrides:
onPaintin classRandomSolver- Parameters:
graphics- The Graphics instance sent from the canvas.
-
onClick
public void onClick(java.awt.Point point)
-
isBreakRunning
public boolean isBreakRunning()
-
-