Weapon
This class describes a weapon, usually used to define a missile.
ATTRIBUTES
id
: (str) unique identifier for the weapon.Example:
"c9065bb1-4b3a-41d5-bc91-a16bdb23881c"
name
: (str) name of the weapon.Example:
"Sample Weapon"
sideName
: (str) side to which the weapon belongs (e.g., BLUE, RED).Example:
"BLUE"
sideColor
: (str) the color of the weapon's current side.className
: (str) type of weapon.Example:
"AGM-158"
latitude
: (float) latitude position.Example:
20.442558487173827
longitude
: (float) longitude position.Example:
144.16072045098306
altitude
: (float) altitude in feet.Example:
10000
heading
: (float) heading in degrees.Example:
85.42632327325884
speed
: (float) speed in knots.Example:
350
currentFuel
: (float) remaining fuel.Example:
100000
maxFuel
: (float) maximum fuel capacity.Example:
100000
fuelRate
: (float) the fuel consumption in lbs/hr.range
: (float) the weapon's maximum range.route
: (list[list[float]]) the weapon's current route (collection of waypoints).targetId
: (str) the identifier of the weapon's current target.lethality
: (float) lethality score of the weapon. Used to calculate whether a hit target is destroyed.Example:
0.25
currentQuantity
: (int) number of available weapons.Example:
10
maxQuantity
: (int) maximum number of weapons.Example:
10
METHODS
toJSON()
: (str) returns this object as a JSON.
Last updated