Options
All
  • Public
  • Public/Protected
  • All
Menu

A special Graphics class which handles Grid layer highlighting

Hierarchy

Index

Constructors

  • Parameters

    • name: any
    • Rest ...args: any[]

    Returns GridHighlight

Properties

name: string

Track the Grid Highlight name

positions: Set<any>

Track distinct positions which have already been highlighted

Methods

  • highlight(x: number, y: number): boolean
  • Record a position that is highlighted and return whether or not it should be rendered

    Parameters

    • x: number

      The x-coordinate to highlight

    • y: number

      The y-coordinate to highlight

    Returns boolean

    Whether or not to draw the highlight for this location

  • clear(): any
  • inheritdoc

    Returns any

  • destroy(...args: any[]): any
  • inheritdoc

    Parameters

    • Rest ...args: any[]

    Returns any