Class TaskBot


  • public abstract class TaskBot
    extends LoopingBot
    An outdated and inferior bot framework.
    See Also:
    TreeBot
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.runemate.game.api.script.framework.AbstractBot

        com.runemate.game.api.script.framework.AbstractBot.State
    • Field Summary

      • Fields inherited from class com.runemate.game.api.script.framework.AbstractBot

        cache, configuration, state
    • Constructor Summary

      Constructors 
      Constructor Description
      TaskBot()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(com.runemate.game.api.script.framework.task.Task... tasks)
      Adds the tasks to the list to be processed.
      java.util.List<com.runemate.game.api.script.framework.task.Task> getTasks()
      Gets a java.util.List of all of the top-level tasks
      void onLoop()
      The script's entry point, all of your logic goes here.
      void remove​(com.runemate.game.api.script.framework.task.Task... tasks)
      Removes the tasks from the list.
      void removeAll()
      Removes all of the tasks from the list.
      • Methods inherited from class com.runemate.game.api.script.framework.AbstractBot

        addWebServicesContext, completeRestart, equals, getBridgeService, getCache, getCacheController, getConfiguration, getEmbeddableUI, getEventDispatcher, getFpsRegulator, getGameEventController, getInputManager, getLogger, getMetaData, getPlatform, getSettings, getSettingsManager, getState, hashCode, IiIIiiiiiIIiIi, initiateRestart, isPaused, isRestarting, isRunning, isSafeToPause, isSafeToStop, isStopped, isUnstarted, onPause, onResume, onStart, onStop, onStop, pause, pause, removeWebServicesContext, resume, setEmbeddableUI, setEmbeddableUI, start, stop, stop
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TaskBot

        public TaskBot()
    • Method Detail

      • onLoop

        public final void onLoop()
        Description copied from class: LoopingBot
        The script's entry point, all of your logic goes here.
        Specified by:
        onLoop in class LoopingBot
      • add

        public final void add​(com.runemate.game.api.script.framework.task.Task... tasks)
        Adds the tasks to the list to be processed.
      • remove

        public final void remove​(com.runemate.game.api.script.framework.task.Task... tasks)
        Removes the tasks from the list.
      • removeAll

        public final void removeAll()
        Removes all of the tasks from the list.
      • getTasks

        public final java.util.List<com.runemate.game.api.script.framework.task.Task> getTasks()
        Gets a java.util.List of all of the top-level tasks
        Returns:
        a java.util.Task of top-level tasks