Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WorldLayer

Hierarchy

  • WorldLayer

Implements

Index

Constructors

constructor

  • new WorldLayer(width: number, height: number, level: number): WorldLayer
  • Parameters

    • width: number
    • height: number
    • level: number

    Returns WorldLayer

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

getTileType

getType

isFence

isTilled

isWall

resetExploredMap

  • resetExploredMap(): void

setTile

  • Parameters

    Returns void

updateAll

  • updateAll(): void

updateTile

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

    • x: number
    • y: number
    • tile: ITile
    • Default value shouldUpdate: boolean = false

    Returns void

Generated using TypeDoc