Weapons class abstract final

The weapons this game ships with.

Ordered as they appear on the keyboard, so slot and index are the same thing and nothing has to map between them.

Properties

hashCode → int
The hash code for this object.
no setterinherited
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
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

all → const List<WeaponDef>
In keyboard order: slot n is all[n].
fists → const WeaponDef
Free, short, and the reason running out of ammo is a setback rather than a dead end.
pistol → const WeaponDef
rocketLauncher → const WeaponDef
shotgun → const WeaponDef
Eight pellets, and all of the reason to close the distance.