ShooterHeadlessGame class final
The shipped game as a HeadlessGame: the sample roster, the starting
loadout and stage — what a tool plays when it plays this genre.
A host composes this with flutter3d_sim_mcp's session and playtest; the
tool names no genre and this package names no tool.
Constructors
-
ShooterHeadlessGame({List<
EntityKind> extra = const <EntityKind>[]}) -
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 setter -
extra
→ List<
EntityKind> -
A kind this package cannot know about without depending on whoever
defines it —
sampleRegistry's ownextraparameter, threaded through rather than duplicated. A host that plays a real shipped level headless (flutter3d_sim_mcp's own crypt) passesWidgetSurfaceKind()here the same wayflutter3d_demo_dungeon'smain.dartdoes for the real app, since a level naming a word this game's own vocabulary does not know refuses to load rather than silently dropping the entity.final - hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
What the tool calls it in a sentence:
shooter,platformer.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
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.
-
start(
Level level, CollisionWorld world, InputState input) → HeadlessRun -
level, already added toworld, spawned and ready to step, readinginput. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited