Class TreeTask

  • Direct Known Subclasses:
    BranchTask, LeafTask

    public abstract class TreeTask
    extends java.lang.Object
    • Method Detail

      • validate

        public abstract boolean validate()
      • execute

        public abstract void execute()
      • successTask

        public abstract TreeTask successTask()
        Returns:
        TreeTask - The task that should be evaluated on success of validation.
      • failureTask

        public abstract TreeTask failureTask()
        Returns:
        TreeTask - The task that should be evaluated on failure of validation.
      • isLeaf

        public abstract boolean isLeaf()
        Returns:
        boolean - Whether or not this node is a leaf.
      • getLogger

        @Deprecated
        public final com.runemate.game.api.script.framework.logger.BotLogger getLogger()
        Deprecated.
        Returns:
        the logger instance associated with this bot instance.