Class TreeScript


public abstract class TreeScript extends LoopScript
  • Field Details

    • EMPTY_LEAF

      public static final LeafTask EMPTY_LEAF
  • Constructor Details

    • TreeScript

      public TreeScript()
  • Method Details

    • setRootTask

      public void setRootTask(TreeTask rootTask)
    • loop

      protected int loop()
      The script loop function.

      By default returns a random number between 50-300. Override this and call super.loop() to override the return value.

      Specified by:
      loop in class LoopScript
      Returns:
      a positive number of the amount the script should sleep or a negative number to the stop script