Class BlipManagerSingleton

Constructors

Properties

GAME_SIZE: GameSize = ...

The size of the game.

GAME_SIZE_HALF: GameSize = ...

The size of the game halfed.

CENTER_SCREEN_POSITION: Point = ...

The center of the screen's coordinates (in pixels).

TILE_SIZE: number = 32

The default tile size. This is used a backup value when an icon's width/height is not accessible.

MAX_BLIPS: number = 200

The maximum number of blips that can exist on the screen at once.

storedBlips: any[] = []

An array tracking all stored blips.

version: string = "VERSION_REPLACE_ME"

The version of the module.

paused: boolean = false

Whether the manager is actively managing the state of blips.

activeBlips: BlipInstance[] = []

An array tracking all active blips (hidden or not).

interfaceHandle: string

The interface used to handle the blips.

logger: Logger

The logger module this module uses to log errors / logs

Methods

  • Gets the angle between two points.

    Parameters

    • pStartPoint: Point

      The starting point.

    • pEndPoint: Point

      The ending point.

    • pCenter: boolean

      Whether to get the angle from the center of the points.

    Returns number

    The angle between the starting point and the ending point.

  • API to get distance between points.

    Parameters

    • pStartPoint: Point

      The starting point.

    • pEndPoint: Point

      The ending point.

    • pCenter: boolean

      Whether to get the distance from the center of the points.

    Returns number

    The distance between the two points.

  • Gets the direction of the angle passed.

    Parameters

    • pAngle: number

      The angle in radians to convert into a cardinal direction.

    Returns string

    The direction of the angle.

  • Tracks a blip within the activeBlips array.

    Parameters

    Returns void

  • Untracks a blip from the activeBlips array.

    Parameters

    Returns void

  • Pauses the blip manager from managing blips

    Returns void

  • Resumes the blip manager to manage blips

    Returns void

  • Method for updating the "state" of each blip.

    Returns void

  • Hides all blips

    Returns void