Package crackers.kobots.parts.movement
Class ActionSequence
-
- All Implemented Interfaces:
public final class ActionSequenceDefines a sequence of actions to be performed.
-
-
Constructor Summary
Constructors Constructor Description ActionSequence()
-
Method Summary
Modifier and Type Method Description final StringgetName()final UnitsetName(String name)final ActionBuilderaction(Function1<ActionBuilder, Unit> init)Add an action to the sequence. final Unitappend(ActionBuilder actionBuilder)final <Error class: unknown class>plus(ActionSequence otherSequence)Create a new sequence with the steps from here with the other appended. final Unitplus(ActionBuilder actionBuilder)Append (add) another action builder to the list of steps. final UnitplusAssign(ActionBuilder actionBuilder)Append (add) another action builder to the list of steps. final UnitplusAssign(ActionSequence otherSequence)Add the other sequence's steps to this one. -
-
Method Detail
-
action
final ActionBuilder action(Function1<ActionBuilder, Unit> init)
Add an action to the sequence.
-
append
final Unit append(ActionBuilder actionBuilder)
-
plus
final <Error class: unknown class> plus(ActionSequence otherSequence)
Create a new sequence with the steps from here with the other appended.
-
plus
@Deprecated(message = "Invalid semantics applied", replaceWith = @ReplaceWith(imports = {}, expression = "plusAssign(actionBuilder)")) final Unit plus(ActionBuilder actionBuilder)
Append (add) another action builder to the list of steps. Does not return anything but does modify the internal list. (Yes, this is contrary to most operators, but it's nicer for DSL.)
-
plusAssign
final Unit plusAssign(ActionBuilder actionBuilder)
Append (add) another action builder to the list of steps.
-
plusAssign
final Unit plusAssign(ActionSequence otherSequence)
Add the other sequence's steps to this one.
-
-
-
-