InputTapeRecorder class final

Writes down what a player did, one entry per step.

Call record once per fixed step, after the input has been filled for that step and before the step runs. Recording afterwards records the latches the step has already cleared, which is a tape of nothing happening.

Constructors

InputTapeRecorder({required int seed})
A recorder writing a fresh tape that starts from generator state seed.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tape → InputTape
The tape being written; record appends to its frames.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
record(InputState input) → void
Writes the step about to run: what input holds now, its presses and releases since the last step, and every axis that is not at rest.
toString() → String
A string representation of this object.
inherited
truncate(int steps) → void
Forgets every entry from step steps on, keeping the first steps.

Operators

operator ==(Object other) → bool
The equality operator.
inherited