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 TypeMethodDescriptioncomputeIntent(T entity) Returns an optional ControlIntent if this goal wants the entity to act.intLower number = higher priority.booleanshouldActivate(T entity)
-
Method Details
-
getPriority
int getPriority()Lower number = higher priority. E.g., 0 = highest. -
shouldActivate
- Returns:
- if this goal should be activated
-
computeIntent
Returns an optional ControlIntent if this goal wants the entity to act.
-