#
Class: Group#
HierarchyHandle<group>
↳ Group
#
Constructors#
constructornew Group(): Group
Returns: Group
Defined in: handles/group.ts:10
#
Properties#
handle• Readonly
handle: group
Defined in: handles/handle.ts:6
#
Accessors#
firstfirst(): Unit
bug
May return null
even if there are still units in the group.
This happens when a unit in the group dies and decays since the group still
holds a reference to that unit but that unit is pretty much null.
See http://wc3c.net/showthread.php?t=104464.
Returns: Unit
Defined in: handles/group.ts:100
#
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
#
sizesize(): number
Returns: number
Defined in: handles/group.ts:104
#
Methods#
addGroupFastaddGroupFast(addGroup: Group): number
#
Parameters:Name | Type |
---|---|
addGroup | Group |
Returns: number
Defined in: handles/group.ts:19
#
addUnitaddUnit(whichUnit: Unit): boolean
#
Parameters:Name | Type |
---|---|
whichUnit | Unit |
Returns: boolean
Defined in: handles/group.ts:23
#
clearclear(): void
Returns: void
Defined in: handles/group.ts:27
#
destroydestroy(): void
Returns: void
Defined in: handles/group.ts:31
#
enumUnitsInRangeenumUnitsInRange(x: number, y: number, radius: number, filter: boolexpr | function): void
#
Parameters:Name | Type |
---|---|
x | number |
y | number |
radius | number |
filter | boolexpr | () => boolean |
Returns: void
Defined in: handles/group.ts:35
#
enumUnitsInRangeCountedenumUnitsInRangeCounted(x: number, y: number, radius: number, filter: boolexpr | function, countLimit: number): void
bug
Causes irregular behavior when used with large numbers
#
Parameters:Name | Type |
---|---|
x | number |
y | number |
radius | number |
filter | boolexpr | () => boolean |
countLimit | number |
Returns: void
Defined in: handles/group.ts:42
#
enumUnitsInRangeOfPointenumUnitsInRangeOfPoint(whichPoint: Point, radius: number, filter: boolexpr | function): void
#
Parameters:Name | Type |
---|---|
whichPoint | Point |
radius | number |
filter | boolexpr | () => boolean |
Returns: void
Defined in: handles/group.ts:46
#
enumUnitsInRangeOfPointCountedenumUnitsInRangeOfPointCounted(whichPoint: Point, radius: number, filter: boolexpr | function, countLimit: number): void
bug
Causes irregular behavior when used with large numbers
#
Parameters:Name | Type |
---|---|
whichPoint | Point |
radius | number |
filter | boolexpr | () => boolean |
countLimit | number |
Returns: void
Defined in: handles/group.ts:53
#
enumUnitsInRectenumUnitsInRect(r: Rectangle, filter: boolexpr | function): void
#
Parameters:Name | Type |
---|---|
r | Rectangle |
filter | boolexpr | () => boolean |
Returns: void
Defined in: handles/group.ts:57
#
enumUnitsInRectCountedenumUnitsInRectCounted(r: Rectangle, filter: boolexpr | function, countLimit: number): void
bug
Causes irregular behavior when used with large numbers
#
Parameters:Name | Type |
---|---|
r | Rectangle |
filter | boolexpr | () => boolean |
countLimit | number |
Returns: void
Defined in: handles/group.ts:64
#
enumUnitsOfPlayerenumUnitsOfPlayer(whichPlayer: MapPlayer, filter: boolexpr | function): void
note
In contrast to other Enum-functions this function enumarates units with locust.
#
Parameters:Name | Type |
---|---|
whichPlayer | MapPlayer |
filter | boolexpr | () => boolean |
Returns: void
Defined in: handles/group.ts:71
#
enumUnitsOfTypeenumUnitsOfType(unitName: string, filter: boolexpr | function): void
#
Parameters:Name | Type |
---|---|
unitName | string |
filter | boolexpr | () => boolean |
Returns: void
Defined in: handles/group.ts:75
#
enumUnitsOfTypeCountedenumUnitsOfTypeCounted(unitName: string, filter: boolexpr | function, countLimit: number): void
bug
Causes irregular behavior when used with large numbers
#
Parameters:Name | Type |
---|---|
unitName | string |
filter | boolexpr | () => boolean |
countLimit | number |
Returns: void
Defined in: handles/group.ts:82
#
enumUnitsSelectedenumUnitsSelected(whichPlayer: MapPlayer, filter: boolexpr | function): void
#
Parameters:Name | Type |
---|---|
whichPlayer | MapPlayer |
filter | boolexpr | () => boolean |
Returns: void
Defined in: handles/group.ts:86
#
forfor(callback: function): void
#
Parameters:Name | Type |
---|---|
callback | () => void |
Returns: void
Defined in: handles/group.ts:90
#
getUnitAtgetUnitAt(index: number): Unit
#
Parameters:Name | Type |
---|---|
index | number |
Returns: Unit
Defined in: handles/group.ts:114
#
getUnitsgetUnits(): Unit[]
Returns: Unit[]
Defined in: handles/group.ts:108
#
hasUnithasUnit(whichUnit: Unit): boolean
#
Parameters:Name | Type |
---|---|
whichUnit | Unit |
Returns: boolean
Defined in: handles/group.ts:118
#
orderCoordsorderCoords(order: string | number, x: number, y: number): void
#
Parameters:Name | Type |
---|---|
order | string | number |
x | number |
y | number |
Returns: void
Defined in: handles/group.ts:122
#
orderImmediateorderImmediate(order: string | number): void
#
Parameters:Name | Type |
---|---|
order | string | number |
Returns: void
Defined in: handles/group.ts:130
#
orderPointorderPoint(order: string | number, whichPoint: Point): void
#
Parameters:Name | Type |
---|---|
order | string | number |
whichPoint | Point |
Returns: void
Defined in: handles/group.ts:138
#
orderTargetorderTarget(order: string | number, targetWidget: Widget | Unit): void
#
Parameters:Name | Type |
---|---|
order | string | number |
targetWidget | Widget | Unit |
Returns: void
Defined in: handles/group.ts:146
#
removeGroupFastremoveGroupFast(removeGroup: Group): number
#
Parameters:Name | Type |
---|---|
removeGroup | Group |
Returns: number
Defined in: handles/group.ts:154
#
removeUnitremoveUnit(whichUnit: Unit): boolean
#
Parameters:Name | Type |
---|---|
whichUnit | Unit |
Returns: boolean
Defined in: handles/group.ts:158
#
fromHandlestatic fromHandle(handle: group): Group
#
Parameters:Name | Type |
---|---|
handle | group |
Returns: Group
Defined in: handles/group.ts:162
#
getEnumUnitstatic getEnumUnit(): Unit
Returns: Unit
Defined in: handles/group.ts:166
#
getFilterUnitstatic getFilterUnit(): Unit
Returns: Unit
Defined in: handles/group.ts:170