Your browser does not support HTML5 canvas. Fork me on GitHub

Available Packages:

Group

Source

group ENUM_GROUP

Source

Use this group for your non-nested group enum calls and then iterate through the group via **for from** or clear the group after use

function static group.add(vararg unit units) returns int

Source

Returns the number of added units.

function static group.add(vararg group groups) returns int

Source

function static group.clear()

Source

function static group.close()

Source

Closes the iterator, releaseing the group

function static group.destr()

Source

function static group.enumUnitsAll(boolexpr filter)

Source

function static group.enumUnitsInRange(vec2 pos, real range)

Source

function static group.enumUnitsInRange(vec2 pos, real range, boolexpr filter)

Source

function static group.enumUnitsInRect(rect rec)

Source

function static group.enumUnitsInRect(rect rec, boolexpr filter)

Source

function static group.enumUnitsOfPlayer(player p, boolexpr filter)

Source

function static group.enumUnitsOfType(string unitname, boolexpr filter)

Source

function static group.enumUnitsOfType(int id, boolexpr filter)

Source

function static group.enumUnitsSelected(player p, boolexpr filter)

Source

function static group.get(int index) returns unit

Source

function static group.getRandom() returns unit

Source

Returns a random unit from this group without removing it or null if the group is empty

function static group.has(unit u) returns boolean

Source

function static group.hasNext() returns boolean

Source

Returns whether the iterator has the next item

function static group.immediateOrder(string order) returns boolean

Source

function static group.immediateOrderById(int order) returns boolean

Source

function static group.isEmpty() returns boolean

Source

function static group.iterator() returns group

Source

Creates a new iterator for this group.

function static group.next() returns unit

Source

Returns the next item from the iterator

function static group.pointOrder(string order, vec2 point) returns boolean

Source

function static group.pointOrderById(int order, vec2 point) returns boolean

Source

function static group.remove(vararg unit units) returns int

Source

Retruns the number of removed units.

function static group.remove(vararg group groups) returns int

Source

function static group.size() returns int

Source

function static group.targetOrder(string order, widget targetWidget) returns boolean

Source

function static group.targetOrder(int order, widget targetWidget) returns boolean

Source