SequentialAction

data class SequentialAction(val initialActions: List<Action>) : Action

Action combinator that executes the action group initialActions in series. Each action is run one after the other. When an action completes, the next one is immediately run. This action completes when the last action completes.

Constructors

Link copied to clipboard
constructor(vararg actions: Action)
constructor(initialActions: List<Action>)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun preview(fieldOverlay: Canvas)

Draws a preview of the action on canvas fieldOverlay.

Link copied to clipboard
open tailrec override fun run(p: TelemetryPacket): Boolean

Runs a single uninterruptible block. Returns true if the action should run again and false if it has completed. A telemetry packet p is provided to record any information on the action's progress.