Class CreateGroupGoal<T extends MobEntity>
java.lang.Object
me.arcademadness.omni_dungeon.controllers.goals.CreateGroupGoal<T>
- Type Parameters:
T- the type of mob that will use this goal
- All Implemented Interfaces:
Goal<T>
A Goal for when a Mob has no group. Makes a new group where the
MobEntity is the Queen.
Should be a lower priority than FindGroupGoal which attempts to join existing groups.
Should be a higher priority than MergeGroupGoal which only works when the MobEntity has a group to merge.-
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
-
CreateGroupGoal
public CreateGroupGoal(int priority, int maxGroupSize)
-
-
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>
-