GridHighlight

GridHighlight

A special Graphics class which handles Grid layer highlighting

Constructor

new GridHighlight()

Extends

  • PIXI.Graphics

Members

name :string

Track the Grid Highlight name

Type:
  • string

positions :Set

Track distinct positions which have already been highlighted

Type:
  • Set

Methods

clear()

destroy()

highlight(x, y) → {boolean}

Record a position that is highlighted and return whether or not it should be rendered

Parameters:
Name Type Description
x number

The x-coordinate to highlight

y number

The y-coordinate to highlight

Returns:

Whether or not to draw the highlight for this location

Type
boolean