This context menu is shown to the user when the airbase marker is right clicked on the map. It allows the user to inspect information about the airbase, as well as allowing to spawn units from the airbase itself and land units on it.

Hierarchy

Constructors

Properties

#airbase: null | Airbase = null
#container: null | HTMLElement
#hidden: boolean = true
#latlng: LatLng = ...
#visibleSubMenu: null | string = null
#x: number = 0
#y: number = 0

Methods

  • Returns void

    Todo

    needs commenting

  • Parameters

    • coalition: string

      Coalition to which the airbase belongs

    Returns void

  • Parameters

    • airbaseName: string

      The name of the airbase

    Returns void

  • Parameters

    • airbaseParkings: string[]

      List of available parkings at the airbase

    Returns void

  • Parameters

    • airbaseProperties: string[]

      The properties of the airbase

    Returns void

  • Parameters

    • showLandButton: boolean

      If true, the land button will be visible

    Returns void

  • Parameters

    • showSpawnButton: boolean

      If true, the spawn button will be visibile

    Returns void

  • Shows the spawn context menu which allows the user to select a unit to ground spawn at the airbase

    Returns void

  • Returns void

  • Returns null | HTMLElement

  • Returns boolean

  • Returns LatLng

  • Returns null | string

  • Returns number

  • Returns number

  • Returns void

  • Sets the airbase for which data will be shown in the context menu

    Parameters

    • airbase: Airbase

      The airbase for which data will be shown in the context menu. Note: the airbase must be present in the public/databases/airbases/.json database.

    Returns void

  • Parameters

    • menu: null | string

    Returns void

  • Parameters

    • x: number
    • y: number
    • latlng: LatLng

    Returns void

Generated using TypeDoc