#
Class: Region#
HierarchyHandle<region>
↳ Region
#
Constructors#
constructornew Region(): Region
Returns: Region
Defined in: handles/region.ts:8
#
Properties#
handle• Readonly
handle: region
Defined in: handles/handle.ts:6
#
Accessors#
idid(): number
Get the unique ID of the handle. The ID is recycled once you destroy the object.
Returns: number
The unique ID of a handle object.
Defined in: handles/handle.ts:18
#
Methods#
addCelladdCell(x: number, y: number): void
#
Parameters:Name | Type |
---|---|
x | number |
y | number |
Returns: void
Defined in: handles/region.ts:18
#
addCellPointaddCellPoint(whichPoint: Point): void
#
Parameters:Name | Type |
---|---|
whichPoint | Point |
Returns: void
Defined in: handles/region.ts:22
#
addRectaddRect(r: Rectangle): void
#
Parameters:Name | Type |
---|---|
r | Rectangle |
Returns: void
Defined in: handles/region.ts:26
#
clearCellclearCell(x: number, y: number): void
#
Parameters:Name | Type |
---|---|
x | number |
y | number |
Returns: void
Defined in: handles/region.ts:30
#
clearCellPointclearCellPoint(whichPoint: Point): void
#
Parameters:Name | Type |
---|---|
whichPoint | Point |
Returns: void
Defined in: handles/region.ts:34
#
clearRectclearRect(r: Rectangle): void
#
Parameters:Name | Type |
---|---|
r | Rectangle |
Returns: void
Defined in: handles/region.ts:38
#
containsCoordscontainsCoords(x: number, y: number): boolean
#
Parameters:Name | Type |
---|---|
x | number |
y | number |
Returns: boolean
Defined in: handles/region.ts:42
#
containsPointcontainsPoint(whichPoint: Point): void
#
Parameters:Name | Type |
---|---|
whichPoint | Point |
Returns: void
Defined in: handles/region.ts:46
#
containsUnitcontainsUnit(whichUnit: Unit): boolean
#
Parameters:Name | Type |
---|---|
whichUnit | Unit |
Returns: boolean
Defined in: handles/region.ts:50
#
destroydestroy(): void
Returns: void
Defined in: handles/region.ts:54
#
fromHandlestatic fromHandle(handle: region): Region
#
Parameters:Name | Type |
---|---|
handle | region |
Returns: Region
Defined in: handles/region.ts:58