isChildAvailable

abstract fun isChildAvailable(thisX: Double, thisY: Double, childX: Double, childY: Double): Boolean(source)

Determines if a given child tile is available, based on the TerrainData.childTileMask. The given child tile coordinates are assumed to be one of the four children of this tile. If non-child tile coordinates are given, the availability of the southeast child tile is returned.

Return

True if the child tile is available; otherwise, false.

Parameters

thisX

The tile X coordinate of this (the parent) tile.

thisY

The tile Y coordinate of this (the parent) tile.

childX

The tile X coordinate of the child tile to check for availability.

childY

The tile Y coordinate of the child tile to check for availability.

See also