public class Selection
extends Object
Trigger selection is not the same as UI selection. If a unit is selected by triggers, no visual feedback is shown to the user (no selection circle). However, the idea stays the same: first select some units, then invoke some command on them.
 Contrary to UI selection, the previous Trigger selection is not automatically cleared 
 when a new selection is made. Common practice is to include trUnitSelectClear() 
 before every new selection.
 
| Modifier and Type | Method and Description | 
|---|---|
void | 
trArmySelect(string army)
Selects the units in the army specified. 
 | 
int | 
trGetNumberSelectedUnitIDs()
Returns the number of currently selected units. 
 | 
int | 
trGetSelectedUnitID(int index)
Returns the unit ID of the currently selected unit. 
 | 
void | 
trUnitSelect(string unitScenarioName)
Adds the given unit to the trigger selection system. 
 | 
void | 
trUnitSelectByID(int unitID)
Adds the given unit to the trigger selection system. 
 | 
void | 
trUnitSelectClear()
Clears the units in the trigger selection system. 
 | 
public void trArmySelect(string army)
public int trGetNumberSelectedUnitIDs()
public int trGetSelectedUnitID(int index)
public void trUnitSelect(string unitScenarioName)
public void trUnitSelectByID(int unitID)
public void trUnitSelectClear()