Interface GoalEvent

All Superinterfaces:
Cancellable, Event
All Known Subinterfaces:
GoalEvent.Add, GoalEvent.Remove
All Known Implementing Classes:
AbstractGoalEvent

public interface GoalEvent extends Event, Cancellable
  • Method Details

    • agent

      Agent agent()
      Gets the Agent.
      Returns:
      The agent
    • goal

      GoalExecutor<? extends Agent> goal()
      Gets the GoalExecutor the task will be assigned to.
      Returns:
      The goal
    • task

      Goal<? extends Agent> task()
      Gets the Goal to be assigned.
      Returns:
      The task
    • priority

      int priority()
      Gets the priority the task will be assigned to. Lower numbers mean higher priority.
      Returns:
      The priority