A HeadlessGame played by orders as well as by the stick — a strategy, where a selection is sent somewhere rather than one body walked there.
A subclass a game opts into: a game without orders is untouched, and a tool offers its order verb only to a game that is one of these.
An order travels through the input, as OrderTunes writes it: a
tunable for the one step that takes it. So it is written on the run's
input tape with that step and given again at the same step when the tape
replays, and a run played by orders verifies and bisects as a run played
by the stick does. The run reads them with OrderTunes.read.
Extended outside this package, on the terms HeadlessGame gives.
- Inheritance
-
- Object
- HeadlessGame
- OrderedGame
Constructors
- OrderedGame()
-
Lets a subclass be const.
const
Properties
-
The buttons a caller may hold down, by the name it asks for them by —
a shooter's
fire. Movement and looking are not here: every game reads them from the same stick and look axes.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
What the tool calls it in a sentence:
shooter,platformer.no setterinherited -
orders
→ Map<
String, GameOrder> -
The orders this game takes, by verb:
move,attack.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- simulation → SimulationVersion?
-
Which simulation this game runs, so a tool refuses a tape recorded on
another before playing it; null for a game that names none, whose tapes
are played and let the checkpoints speak. Null by default.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registry(
) → EntityRegistry -
The entities a level of this game may spawn.
inherited
-
start(
HeadlessStart start) → HeadlessRun -
The start's HeadlessStart.level, already added to its world, spawned
and ready to step, reading its input.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited