public class PrioritizedGoal extends Goal
Goal.Control
Modifier and Type | Field and Description |
---|---|
private Goal |
goal |
private int |
priority |
private boolean |
running |
Constructor and Description |
---|
PrioritizedGoal(int priority,
Goal goal) |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeReplacedBy(PrioritizedGoal goal) |
boolean |
canStart() |
boolean |
canStop() |
boolean |
equals(Object object) |
EnumSet<Goal.Control> |
getControls() |
Goal |
getGoal() |
int |
getPriority() |
int |
hashCode() |
boolean |
isRunning() |
void |
setControls(EnumSet<Goal.Control> controls) |
boolean |
shouldContinue() |
void |
start() |
void |
stop() |
void |
tick() |
private final Goal goal
private final int priority
private boolean running
public PrioritizedGoal(int priority, Goal goal)
public boolean canBeReplacedBy(PrioritizedGoal goal)
public boolean shouldContinue()
shouldContinue
in class Goal
public void setControls(EnumSet<Goal.Control> controls)
setControls
in class Goal
public EnumSet<Goal.Control> getControls()
getControls
in class Goal
public boolean isRunning()
public int getPriority()
public Goal getGoal()