public class StatusCoercer extends BehaviorGoalAdapter
Behavior
and returns a supplied BehaviorStatus
instead of the actual status.Modifier and Type | Method and Description |
---|---|
static StatusCoercer |
coercing(Behavior wrapping,
com.google.common.base.Supplier<BehaviorStatus> to) |
void |
reset()
Resets the goal and any resources or state it is holding.
|
BehaviorStatus |
run()
Ticks the behavior, optionally changing the state that it is in.
|
boolean |
shouldExecute() |
create, run, shouldExecute
public void reset()
Goal
public BehaviorStatus run()
Behavior
public boolean shouldExecute()
public static StatusCoercer coercing(Behavior wrapping, com.google.common.base.Supplier<BehaviorStatus> to)
Copyright © 2021. All rights reserved.