SimpleTileMat
Hierarchy
↳ TileMat
↳ SimpleTileMat
Index
Properties
Methods
Properties
Static
Readonly
centerX
▪ centerX: 250 = 250
Defined in id/position/simpleTileMat.ts:8
Static
Readonly
centerY
▪ centerY: 250 = 250
Defined in id/position/simpleTileMat.ts:9
Static
Readonly
matrixColumns
▪ matrixColumns: 7 = 7
Overrides TileMat.matrixColumns
Defined in id/position/simpleTileMat.ts:16
Static
Readonly
matrixMaxX
▪ matrixMaxX: 402 = 402
Overrides TileMat.matrixMaxX
Defined in id/position/simpleTileMat.ts:13
Static
Readonly
matrixMaxY
▪ matrixMaxY: 358 = 358
Overrides TileMat.matrixMaxY
Defined in id/position/simpleTileMat.ts:14
Static
Readonly
matrixMinX
▪ matrixMinX: 98 = 98
Overrides TileMat.matrixMinX
Defined in id/position/simpleTileMat.ts:11
Static
Readonly
matrixMinY
▪ matrixMinY: 142 = 142
Overrides TileMat.matrixMinY
Defined in id/position/simpleTileMat.ts:12
Static
Readonly
matrixRows
▪ matrixRows: 5 = 5
Overrides TileMat.matrixRows
Defined in id/position/simpleTileMat.ts:15
Static
Readonly
maxX
▪ maxX: 402 = 402
Defined in id/position/simpleTileMat.ts:6
Static
Readonly
maxY
▪ maxY: 358 = 358
Defined in id/position/simpleTileMat.ts:7
Static
Readonly
minX
▪ minX: 98 = 98
Defined in id/position/simpleTileMat.ts:4
Static
Readonly
minY
▪ minY: 142 = 142
Defined in id/position/simpleTileMat.ts:5
Methods
Static
getTileCenter
▸ getTileCenter(row
: number | undefined, column
: number | undefined): object | undefined
Inherited from TileMat.getTileCenter
Defined in id/position/tileMat.ts:18
Get center of the tile position.
Parameters:
Name | Type | Description |
---|---|---|
row | number | undefined | Target row number. |
column | number | undefined | Target column number. |
Returns: object | undefined
Center position x, y of the specified row/column as {x: number, y: number}
. If specified row/column is invalid, this function returns undefined.
Static
getTileColumn
▸ getTileColumn(x
: number | undefined): number | undefined
Inherited from TileMat.getTileColumn
Defined in id/position/tileMat.ts:101
Get column index number of the tile matrix.
Parameters:
Name | Type | Description |
---|---|---|
x | number | undefined | X coordinate of checking target point. |
Returns: number | undefined
Column index number.
Static
getTileMatrixIndex
▸ getTileMatrixIndex(x
: number | undefined, y
: number | undefined): object | undefined
Inherited from TileMat.getTileMatrixIndex
Defined in id/position/tileMat.ts:49
Get matrix index of simple play(tile) mat.
Parameters:
Name | Type | Description |
---|---|---|
x | number | undefined | X coordinate of checking target point. |
y | number | undefined | Y coordinate of checking target point. |
Returns: object | undefined
row/column numbers as {row: number, column: number}
. If specified (x, y) is not on toio Collection tile mat, this function returns undefined.
Static
getTileRow
▸ getTileRow(y
: number | undefined): number | undefined
Inherited from TileMat.getTileRow
Defined in id/position/tileMat.ts:74
Get row index number of the tile matrix.
Parameters:
Name | Type | Description |
---|---|---|
y | number | undefined | Y coordinate of checking target point. |
Returns: number | undefined
Row index number.
Static
isOnMat
▸ isOnMat(x
: number | undefined, y
: number | undefined): boolean
Defined in id/position/mat.ts:17
Specified coordinate is on the mat or not.
Parameters:
Name | Type | Description |
---|---|---|
x | number | undefined | X coordinate of checking target point. |
y | number | undefined | Y coordinate of checking target point. |
Returns: boolean
true iff specified (x, y) is on this mat.