public class PrioritizedGoal extends Goal
Modifier and Type | Field and Description |
---|---|
private Goal |
inner |
private int |
priority |
private boolean |
running |
Constructor and Description |
---|
PrioritizedGoal(int priorityIn,
Goal goalIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object p_equals_1_) |
Goal |
getGoal() |
java.util.EnumSet<Goal.Flag> |
getMutexFlags() |
int |
getPriority() |
int |
hashCode() |
boolean |
isPreemptedBy(PrioritizedGoal other) |
boolean |
isPreemptible() |
boolean |
isRunning() |
void |
resetTask() |
void |
setMutexFlags(java.util.EnumSet<Goal.Flag> flagSet) |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
tick() |
private final Goal inner
private final int priority
private boolean running
public PrioritizedGoal(int priorityIn, Goal goalIn)
public boolean isPreemptedBy(PrioritizedGoal other)
public boolean shouldExecute()
shouldExecute
in class Goal
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal
public boolean isPreemptible()
isPreemptible
in class Goal
public void startExecuting()
startExecuting
in class Goal
public void setMutexFlags(java.util.EnumSet<Goal.Flag> flagSet)
setMutexFlags
in class Goal
public java.util.EnumSet<Goal.Flag> getMutexFlags()
getMutexFlags
in class Goal
public boolean isRunning()
public int getPriority()
public Goal getGoal()
public boolean equals(@Nullable java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object