SleepAction

data class SleepAction(val dt: Double) : Action

Primitive sleep action that stalls for dt seconds.

Constructors

Link copied to clipboard
constructor(dt: Double)

Properties

Link copied to clipboard
val dt: Double

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 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.