encyclopedia

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

package encyclopedia is a database of aircraft data

Index

Constants

This section is empty.

Variables

View Source
var (
	SAR1IRThreat   = 15 * unit.NauticalMile
	SAR2AR1Threat  = 25 * unit.NauticalMile
	ExtendedThreat = 35 * unit.NauticalMile
)

Functions

This section is empty.

Types

type Aircraft

type Aircraft struct {
	// ACMIShortName is the Name proeprty used in ACMI telemetry.
	ACMIShortName string

	// e.g. F-15, Su-27
	PlatformDesignation string
	// TypeDesignation is the official type designation of the aircraft.
	// e.g. F-15C, F-15E, Su-27
	TypeDesignation string
	// NATOReportingName is the NATO reporting name of the aircraft. Not all aircraft have a NATO reporting name.
	// e.g. Flanker, Bear
	NATOReportingName string
	// OfficialName is the official name of the aircraft. Not all aircraft have an official name.
	// e.g. Thunderbolt, Falcon, Eagle
	OfficialName string
	// Nickname is a common nickname for the aircraft. Not all aircraft have a nickname.
	// e.g. Warthog, Viper, Mudhen
	Nickname string
	// contains filtered or unexported fields
}

func GetAircraftData

func GetAircraftData(name string) (Aircraft, bool)

GetAircraftData returns the aircraft data for the given name, if it exists. The name should be the Name property of an ACMI object. The second return value is false if the data does not exist.

func (Aircraft) Category

func (a Aircraft) Category() brevity.ContactCategory

func (Aircraft) HasAnyTag

func (a Aircraft) HasAnyTag(tags ...AircraftTag) bool

func (Aircraft) HasTag

func (a Aircraft) HasTag(tag AircraftTag) bool

func (Aircraft) Tags

func (a Aircraft) Tags() []AircraftTag

func (Aircraft) ThreatRadius

func (a Aircraft) ThreatRadius() unit.Length

type AircraftTag

type AircraftTag int
const (
	FixedWing AircraftTag = iota
	RotaryWing
	Unarmed
	Fighter
	Attack
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL