Class: Point#
Hierarchy#
Handle<location>
↳ Point
Constructors#
constructor#
new Point(x: number, y: number): PointCreates a new location handle. Generally, raw coordinates should be used instead.
Parameters:#
| Name | Type | Description |
|---|---|---|
x | number | |
y | number |
Returns: Point
Defined in: handles/point.ts:5
Properties#
handle#
• Readonly handle: location
Defined in: handles/handle.ts:6
Accessors#
id#
id(): numberGet 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
x#
x(): numberReturns: number
Defined in: handles/point.ts:19
x(value: number): voidParameters:#
| Name | Type |
|---|---|
value | number |
Returns: void
Defined in: handles/point.ts:23
y#
y(): numberReturns: number
Defined in: handles/point.ts:27
y(value: number): voidParameters:#
| Name | Type |
|---|---|
value | number |
Returns: void
Defined in: handles/point.ts:31
z#
z(): numberThis function is asynchronous. The values it returns are not guaranteed synchronous between each player. If you attempt to use it in a synchronous manner, it may cause a desync.
note Reasons for returning different values might be terrain-deformations caused by spells/abilities and different graphic settings.
Other reasons could be the rendering state of destructables and visibility differences.
async
Returns: number
Defined in: handles/point.ts:42
Methods#
destroy#
destroy(): voidReturns: void
Defined in: handles/point.ts:46
setPosition#
setPosition(x: number, y: number): voidParameters:#
| Name | Type |
|---|---|
x | number |
y | number |
Returns: void
Defined in: handles/point.ts:50
fromHandle#
static fromHandle(handle: location): PointParameters:#
| Name | Type |
|---|---|
handle | location |
Returns: Point
Defined in: handles/point.ts:54