Package crackers.kobots.parts.movement
Class Action
-
- All Implemented Interfaces:
public final class Action
-
-
Method Summary
-
-
Method Detail
-
step
final Boolean step(Duration stepExecutionTime)
Executes each movement in the Action and returns
true
if all movements were successful. Iffalse
, this indicates that the action is not complete and should execute step again.If a stepExecutionTime is provided, then each movement will pause until the next is executed (the value is roughly distributed between steps). This is useful for ensuring that the Action is not executed too quickly.
This is a blocking call: the assumption is that it is only used by a single, controlling thread. There is currently no means to interrupt a single step, aside from each movement's
stopCheck
.
-
-
-
-