Weapon class

Weapon struct contains the weapon description

Constructors

Weapon({required Distance sightHeight, required ZeroInfo zeroInfo, required bool hasTwistInfo, TwistInfo? twist, required Angular clickValue})
Weapon.createWeapon(Distance sightHeight, ZeroInfo zeroInfo)
Creates the weapon definition with no twist info
factory
Weapon.createWeaponWithTwist(Distance sightHeight, ZeroInfo zeroInfo, TwistInfo twist)
Creates weapon description with twist info
factory

Properties

clickValue ↔ Angular
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
hasTwistInfo → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sightHeight → Distance
final
twist → TwistInfo?
final
zeroInfo → ZeroInfo
final

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