Force

Handle Wrappers View source
Force

Source on GitHub

Interfaces

ForceCallback

public interface ForceCallback

Members:

  • run(player p)

Extension Functions

force.destr

public function force.destr()

force.addPlayer

public function force.addPlayer(player whichPlayer)

force.addPlayers

public function force.addPlayers(vararg player players)

force.removePlayer

public function force.removePlayer(player whichPlayer)

force.removePlayers

public function force.removePlayers(vararg player players)

force.clear

public function force.clear()

force.enumPlayers

public function force.enumPlayers(boolexpr filter)

force.enumPlayersCounted

public function force.enumPlayersCounted(boolexpr filter, int countLimit)

force.enumAllies

public function force.enumAllies(player whichPlayer, boolexpr filter)

force.enumEnemies

public function force.enumEnemies(player whichPlayer, boolexpr filter)

force.forEach

public function force.forEach(code callback)

Use with GetEnumPlayer()

force.forEach

public function force.forEach(ForceCallback callback)

Use with GetEnumPlayer()

force.getRandomPlayer

public function force.getRandomPlayer() returns player

force.containsUnit

public function force.containsUnit(unit whichUnit) returns boolean

force.containsPlayer

public function force.containsPlayer(player whichPlayer) returns boolean

force.iterator

public function force.iterator() returns force

Creates a new unordered iterator for this group.

force.hasNext

public function force.hasNext() returns boolean

Returns whether the iterator has the next item

force.next

public function force.next() returns player

Returns the next item from the iterator

force.close

public function force.close()

Closes the iterator, releaseing the group

force.has

public function force.has(player whichPlayer) returns boolean