public class RandomExecutor
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
RandomExecutor(Bot bot) |
Modifier and Type | Method and Description |
---|---|
RandomSolver |
forEvent(RandomEvent event)
Gets the RandomSolver for the specified event.
|
java.util.Collection<RandomSolver> |
getAllSolvers()
Returns all the currently registered random event solvers.
|
RandomSolver |
getCurrent()
Gets the current random solver, null if there is no random being solved at the moment.
|
int |
getTimeUntilBreak()
Deprecated.
Use
Bot.getTimeUntilNextBreak() (which will be in seconds) |
void |
interrupt() |
boolean |
isExecuting() |
void |
overrideOSBotRandom(RandomSolver solver) |
void |
run() |
void |
terminate() |
public RandomExecutor(Bot bot)
public void overrideOSBotRandom(RandomSolver solver)
public RandomSolver getCurrent()
public java.util.Collection<RandomSolver> getAllSolvers()
public RandomSolver forEvent(RandomEvent event)
event
- The type of event to get the solver for.public int getTimeUntilBreak()
Bot.getTimeUntilNextBreak()
(which will be in seconds)public void run()
run
in interface java.lang.Runnable
public void interrupt()
public void terminate()
public boolean isExecuting()