Package crackers.kobots.parts.movement
Class ActionSequence
-
- All Implemented Interfaces:
public final class ActionSequence
Defines a sequence of actions to be performed.
-
-
Constructor Summary
Constructors Constructor Description ActionSequence()
-
Method Summary
Modifier and Type Method Description final String
getName()
final Unit
setName(String name)
final ActionBuilder
action(Function1<ActionBuilder, Unit> init)
Add an action to the sequence. final Unit
append(ActionBuilder actionBuilder)
final <Error class: unknown class>
plus(ActionSequence otherSequence)
Create a new sequence with the steps from here with the other appended. final Unit
plus(ActionBuilder actionBuilder)
Append (add) another action builder to the list of steps. final Unit
plusAssign(ActionBuilder actionBuilder)
Append (add) another action builder to the list of steps. final Unit
plusAssign(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.
-
-
-
-