Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IWorldLayer

Hierarchy

  • IWorldLayer

Implemented by

Index

Properties

exploredMap

exploredMap: IExploreMap

height

height: number

level

level: number

lightBlockMap

lightBlockMap: IByteGrid

lightLevelMap

lightLevelMap: IByteGrid

onDoodadUpdate

onDoodadUpdate: onDoodadUpdateDelegate

onTileUpdate

onTileUpdate: onTileUpdateDelegate

width

width: number

Methods

getTile

  • Parameters

    • x: number
    • y: number

    Returns TerrainData

getTileType

  • Parameters

    • x: number
    • y: number

    Returns TerrainType

getType

isFence

  • Parameters

    Returns boolean

isTilled

  • Parameters

    Returns boolean

isWall

  • Parameters

    Returns boolean

resetExploredMap

  • resetExploredMap(): void
  • Returns void

setTile

  • Parameters

    Returns void

updateAll

  • updateAll(): void
  • Returns void

updateTile

  • updateTile(x: number, y: number, tile: ITile, shouldUpdate?: boolean): void
  • Parameters

    • x: number
    • y: number
    • tile: ITile
    • Optional shouldUpdate: boolean

    Returns void

Generated using TypeDoc