Package com.epicbot.api.shared.script
Class LoopScript
- java.lang.Object
-
- com.epicbot.api.shared.script.Script
-
- com.epicbot.api.shared.script.LoopScript
-
- Direct Known Subclasses:
TreeScript
public abstract class LoopScript extends Script
A script that loops until a negative number is returned byloop()
, otherwise this will run for ever.This script has one
ScriptTask
that calls theloop()
function. The amount to sleep is determined by the result ofloop()
. ThereforeScript.setIterationDelay(int)
is set to 0.
-
-
Constructor Summary
Constructors Constructor Description LoopScript()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract int
loop()
The script loop function.-
Methods inherited from class com.epicbot.api.shared.script.Script
addTask, antiRandom, getAPIContext, getIterationDelay, getLogger, getManifest, getRandomHandler, getScriptProfile, getScriptType, getSettingsDirectory, getState, getTaskContainer, init, isPaused, isRunning, isStopping, onBreak, onChatMessage, onGameTick, onPaint, onPause, onResume, onStart, onStop, pause, removeTask, removeTask, resume, setIterationDelay, startBreak, stop, submitTask
-
-