Class FindTargetGoal<T extends MobEntity>
java.lang.Object
me.arcademadness.omni_dungeon.controllers.goals.FindTargetGoal<T>
- All Implemented Interfaces:
Goal<T>
-
Constructor Summary
Constructors -
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)
-
Constructor Details
-
FindTargetGoal
public FindTargetGoal(int priority, int scanRadius)
-
-
Method Details
-
getPriority
public int getPriority()Description copied from interface:GoalLower number = higher priority. E.g., 0 = highest.- Specified by:
getPriorityin interfaceGoal<T extends MobEntity>
-
shouldActivate
- Specified by:
shouldActivatein interfaceGoal<T extends MobEntity>- Returns:
- if this goal should be activated
-
computeIntent
Description copied from interface:GoalReturns an optional ControlIntent if this goal wants the entity to act.- Specified by:
computeIntentin interfaceGoal<T extends MobEntity>
-