Class: TileClass

TileClass()

Class that can be tagged to any tile. Can be used to constrain placers and entity placement to given areas.

Constructor

new TileClass()

Source:

Methods

add()

Adds the given position to the tileclass.
Source:

countInRadius()

Count the number of tiles in the tileclass within the given radius of the given position. Can return either the total number of members or nonmembers.
Source:

countMembersInRadius()

Counts the number of tiles marked in the tileclass within the given radius of the given position.
Source:

countNonMembersInRadius()

Counts the number of tiles not marked in the tileclass within the given radius of the given position.
Source:

has()

Returns true if the given position is part of the tileclass.
Source:

remove()

Removes the given position to the tileclass.
Source: