Aircraft
Last updated
Last updated
This class describes an aircraft.
id
: (str) unique identifier for the aircraft.
Example: "7bc96d3b-ffe7-4469-b976-893e7fa5deca"
name
: (str) name/Callsign of the aircraft.
Example: "Beaver #1"
sideName
: (str) side to which the aircraft belongs (e.g., BLUE, RED).
Example: "BLUE"
sideColor
: (str) the color of the aircraft's current side.
selected
: (bool) whether the unit is currently selected.
className
: (str) type of the aircraft.
Example: "F-16C"
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.
weapons
: (list[]) list of weapons the aircraft has.
range
: (float) the aircraft's maximum range.
route
: (list[list[float]]) the aircraft's current route (collection of waypoints).
homeBaseId
: (str) the identifier of the aircraft's home base.
rtb
: (bool) whether or not the aircraft is returning to base.
targetId
: (str) the identifier of the aircraft's current target.
getTotalWeaponQuantity()
: (int) returns the aircraft's current count of weapons.
getWeaponWithHighestRange()
: (int) returns the aircraft's highest range weapon.
toJSON()
: (str) returns this object as a JSON.