Facility
This class describes a facility, which is usually used to represent a surface to air missile (SAM).
ATTRIBUTES
id
: (str) Unique identifier for the facility.Example:
"8dd38f74-7e04-446f-94c7-5f5f82157d49"
name
: (str) name of the facility.Example:
"SAM #1"
sideName
: (str) side to which the unit belongs (e.g., BLUE, RED).Example:
"BLUE"
sideColor
: (str) the color of the unit's current side.className
: (str) type of facility.latitude
: (float) latitude position.Example:
20.442558487173827
longitude
: (float) longitude position.Example:
144.16072045098306
altitude
: (float) altitude in feet.Example:
10000
range
: (float) range of the facility's weapons in nautical miles.Example:
250
weapons
: (list[Weapon]) list of weapons the facility has.
METHODS
getTotalWeaponQuantity()
: (int) returns the facility's current count of weapons.getWeaponWithHighestRange()
: (int) returns the facility's highest range weapon.toJSON()
: (str) returns this object as a JSON.
Last updated