public class PrioritizedGoal extends Goal
コンストラクタと説明 |
---|
PrioritizedGoal(int priorityIn,
Goal goalIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
equals(java.lang.Object p_equals_1_) |
Goal |
getGoal()
"Gets the private goal enclosed by this PrioritizedGoal.
|
java.util.EnumSet<Goal.Flag> |
getMutexFlags() |
int |
getPriority() |
int |
hashCode() |
boolean |
isPreemptedBy(PrioritizedGoal other) |
boolean |
isPreemptible() |
boolean |
isRunning() |
void |
resetTask()
Reset the task's internal state.
|
void |
setMutexFlags(java.util.EnumSet<Goal.Flag> flagSet) |
boolean |
shouldContinueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
boolean |
shouldExecute()
Returns whether execution should begin.
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
void |
tick()
Keep ticking a continuous task that has already been started
|
public PrioritizedGoal(int priorityIn, Goal goalIn)
public boolean isPreemptedBy(PrioritizedGoal other)
public boolean shouldExecute()
shouldExecute
クラス内 Goal
public boolean shouldContinueExecuting()
shouldContinueExecuting
クラス内 Goal
public boolean isPreemptible()
isPreemptible
クラス内 Goal
public void startExecuting()
startExecuting
クラス内 Goal
public void resetTask()
public void tick()
public void setMutexFlags(java.util.EnumSet<Goal.Flag> flagSet)
setMutexFlags
クラス内 Goal
public java.util.EnumSet<Goal.Flag> getMutexFlags()
getMutexFlags
クラス内 Goal
public boolean isRunning()
public int getPriority()
public Goal getGoal()
public boolean equals(@Nullable java.lang.Object p_equals_1_)
equals
クラス内 java.lang.Object
public int hashCode()
hashCode
クラス内 java.lang.Object