ActionSet class final
The actions a game or a genre declares: what a player can ask for, of which kind, in the order a rebinding screen lists them.
Data, and device-free. What a key or a stick does is an action map,
which is flutter3d_game's and holds device ids; this holds names and
kinds only, so a genre package that steps a simulation with no Flutter in
it can declare its actions and a tape can be upgraded against them on a
server.
Constructors
-
ActionSet(String name, List<
ActionDeclaration> declarations) -
A set called
namedeclaringdeclarations, kept in the order given.const
Properties
-
actions
→ Iterable<
InputAction< Object> > -
Every action, in declaration order.
no setter
-
declarations
→ List<
ActionDeclaration> -
Each action with its label and flags, in the order a rebinding screen
lists them.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The set's name, written into a saved action map so a file from one game
is not read as another's.
final
-
rebindable
→ Iterable<
ActionDeclaration> -
The declarations a rebinding screen lists.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
contains(
InputAction< Object> action) → bool -
Whether this set declares
action, matched by kind and name. -
declarationOf(
InputAction< Object> action) → ActionDeclaration? -
How
actionwas declared here, or null when it was not. -
find(
String name, ActionKind kind) → InputAction< Object> ? -
The action called
nameofkind— for a saved file, which names actions as text. Null when this set declares no such action (absent, not an error: a binding file from another game names actions this one does not have). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
plus(
List< ActionDeclaration> more, {String? name}) → ActionSet -
This set with
moreafter it, undername(this one's by default). -
toString(
) → String -
A string representation of this object.
inherited
-
upgradeTape(
InputTape tape) → InputTape -
tapewith this set's axes written in, where it was recorded before they existed.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- common → const ActionSet
- What every game with a body declares: walking and looking, and the GameAction.common buttons — the four directions among them, which InputState.moveAxis adds to the stick.