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
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
inputholds 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
stepson, keeping the firststeps.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited