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 Goalpublic boolean shouldContinueExecuting()
shouldContinueExecuting in class Goalpublic boolean isPreemptible()
isPreemptible in class Goalpublic void startExecuting()
startExecuting in class Goalpublic void setMutexFlags(java.util.EnumSet<Goal.Flag> flagSet)
setMutexFlags in class Goalpublic java.util.EnumSet<Goal.Flag> getMutexFlags()
getMutexFlags in class Goalpublic boolean isRunning()
public int getPriority()
public Goal getGoal()
public boolean equals(@Nullable
java.lang.Object p_equals_1_)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object