Interface GoalSelector

All Known Implementing Classes:
SimpleGoalController.SimpleGoalSelector

public interface GoalSelector
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Stops executing any currently running Goals and allows other goals to be selected for execution.
    void
    Calls finish() and removes the Goal from the list of possible goals to execute.
    void
    select(Goal goal)
    Replaces the execution of any running Goals with the specified goal.
    void
    Adds the provided Goals to the execution list.
  • Method Details

    • finish

      void finish()
      Stops executing any currently running Goals and allows other goals to be selected for execution.
    • finishAndRemove

      void finishAndRemove()
      Calls finish() and removes the Goal from the list of possible goals to execute.
    • select

      void select(Goal goal)
      Replaces the execution of any running Goals with the specified goal.
      Parameters:
      goal - The new goal for execution
    • selectAdditional

      void selectAdditional(Goal... goals)
      Adds the provided Goals to the execution list. These goals will be executed along with any previously running goals.
      Parameters:
      goals - The additional goals