Options
All
  • Public
  • Public/Protected
  • All
Menu

Module TileHelpers

Index

Variables

Const maskGfx

maskGfx: 31 = 31

Const maskTilled

maskTilled: 4096 = 4096

Const maskType

maskType: 4064 = 4064

Functions

findMatchingTile

  • findMatchingTile(start: IPointZ, isMatchingTile?: function, maxTilesChecked?: number, canVisitTile?: function): IPointZ | undefined
  • Parameters

    • start: IPointZ
    • Optional isMatchingTile: function
    • Optional maxTilesChecked: number
    • Optional canVisitTile: function

    Returns IPointZ | undefined

getGfx

  • getGfx(tile: ITile): number
  • Parameters

    Returns number

getGfxRaw

  • getGfxRaw(data: number): number
  • Parameters

    • data: number

    Returns number

getType

getTypeRaw

  • Parameters

    • data: number

    Returns TerrainType

isOpenTile

  • Check is a tile is open

    Parameters

    Returns boolean

isSuitableSpawnPointTile

  • isSuitableSpawnPointTile(point: IPointZ, tile: ITile): boolean
  • Check if a tile is a suitable spawn point

    Parameters

    Returns boolean

isTilled

  • isTilled(tile: ITile): boolean
  • Parameters

    Returns boolean

isTilledRaw

  • isTilledRaw(data: number): boolean
  • Parameters

    • data: number

    Returns boolean

setGfx

  • setGfx(tile: ITile, value: number): void
  • Parameters

    • tile: ITile
    • value: number

    Returns void

setGfxRaw

  • setGfxRaw(data: number, value: number): number
  • Parameters

    • data: number
    • value: number

    Returns number

setTilled

  • setTilled(tile: ITile, value: boolean): void
  • Parameters

    • tile: ITile
    • value: boolean

    Returns void

setTilledRaw

  • setTilledRaw(data: number, value: number): number
  • Parameters

    • data: number
    • value: number

    Returns number

setType

  • Parameters

    Returns void

setTypeRaw

  • Parameters

    Returns number

Generated using TypeDoc