Interface Goal<T extends Entity>

All Known Implementing Classes:
ChaseClosestEntityGoal, CreateGroupGoal, FindGroupGoal, FindTargetGoal, GroupChaseGoal, GroupFindTargetGoal, GroupWanderGoal, MergeGroupGoal, RandomWanderGoal

public interface Goal<T extends Entity>
  • Method Summary

    Modifier and Type
    Method
    Description
    computeIntent(T entity)
    Returns an optional ControlIntent if this goal wants the entity to act.
    int
    Lower number = higher priority.
    boolean
    shouldActivate(T entity)
     
  • Method Details

    • getPriority

      int getPriority()
      Lower number = higher priority. E.g., 0 = highest.
    • shouldActivate

      boolean shouldActivate(T entity)
      Returns:
      if this goal should be activated
    • computeIntent

      Optional<ControlIntent> computeIntent(T entity)
      Returns an optional ControlIntent if this goal wants the entity to act.