Class: LevelObject

LevelObject(block, coordinate)

Coordinate and Block in LevelZ World

Constructor

new LevelObject(block, coordinate)

Constructs a new LevelObject.
Parameters:
Name Type Description
block Block | string The Block
coordinate Coordinate | Array.<number> The Coordinate
Source:
Examples
new LevelObject(new Block('block'), new Coordinate2D(1, 2))
new LevelObject('block', [1, 2])

Classes

LevelObject

Members

block :Block

The Block of this LevelObject.
Type:
Source:

coordinate :Coordinate

The Coordinate of this LevelObject.
Type:
Source:

name

Gets the name of the block.
Source:

properties

Gets the properties of the block.
Source:

Methods

toString() → {string}

Returns the string representation of this LevelObject.
Source:
Returns:
The string representation of this LevelObject.
Type
string
Example
block<property=value>: [x, y]