Options
All
  • Public
  • Public/Protected
  • All
Menu

Class World

Hierarchy

  • World

Implements

Index

Constructors

constructor

  • new World(width: number, height: number): World
  • Parameters

    • width: number
    • height: number

    Returns World

Properties

height

height: number

layers

layers: IWorldLayer[]

width

width: number

Methods

addLayer

  • addLayer(level: number): void
  • Parameters

    • level: number

    Returns void

deserializeObject

  • Parameters

    Returns void

isLoaded

  • isLoaded(): boolean
  • Returns boolean

load

  • load(): void
  • Returns void

resetExploredMap

  • resetExploredMap(): void

serializeObject

  • Parameters

    Returns void

toLocal

  • toLocal(world: number, local: number): number
  • Parameters

    • world: number
    • local: number

    Returns number

updateAll

  • updateAll(): void
  • Returns void

updateTile

  • updateTile(x: number, y: number, z: number, tile: ITile): void
  • Parameters

    • x: number
    • y: number
    • z: number
    • tile: ITile

    Returns void

Generated using TypeDoc