Package org.dreambot.api.randoms
Class LoginSolver
- java.lang.Object
-
- org.dreambot.api.randoms.RandomSolver
-
- org.dreambot.api.randoms.LoginSolver
-
- All Implemented Interfaces:
java.util.EventListener,PaintListener
public class LoginSolver extends RandomSolver
-
-
Constructor Summary
Constructors Constructor Description LoginSolver()LoginSolver(java.lang.String override)A constructor that allows you to override the event name This is used for extending our login solver
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDebugInfo()This will return state information about the solver useful for debuggingvoidonFinish()Runs once at the end (when shouldExecute first returns false); This method can be optionally overriddenintonLoop()Runs as long as shouldExecute returns true; This method must be overriddenvoidonStart()Runs once when the random solver first activates; This method can be optionally overriddenbooleanshouldExecute()Checks whether the random even solver should execute; This method must be overridden-
Methods inherited from class org.dreambot.api.randoms.RandomSolver
disable, enable, getEventString, getMinimumRest, isEnabled, isForceDisable, lastRan, onPaint, onPaint, setForceDisable
-
-
-
-
Method Detail
-
shouldExecute
public boolean shouldExecute()
Description copied from class:RandomSolverChecks 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
-
onStart
public void onStart()
Description copied from class:RandomSolverRuns once when the random solver first activates; This method can be optionally overridden- Overrides:
onStartin classRandomSolver
-
onLoop
public int onLoop()
Description copied from class:RandomSolverRuns as long as shouldExecute returns true; This method must be overridden- Specified by:
onLoopin classRandomSolver- Returns:
- time to delay before next onLoop
-
onFinish
public void onFinish()
Description copied from class:RandomSolverRuns once at the end (when shouldExecute first returns false); This method can be optionally overridden- Overrides:
onFinishin classRandomSolver
-
getDebugInfo
public java.lang.String getDebugInfo()
Description copied from class:RandomSolverThis will return state information about the solver useful for debugging- Overrides:
getDebugInfoin classRandomSolver- Returns:
- state information about the solver
-
-