Options
All
  • Public
  • Public/Protected
  • All
Menu

Module TileHelpers

Index

Variables

maskGfx

maskGfx: 3 = 3

maskTilled

maskTilled: 256 = 256

maskType

maskType: 252 = 252

Functions

findOpenTile

  • findOpenTile(start: IPointZ, checkTileCallback?: function): IPointZ | undefined
  • Parameters

    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

  • 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