Esempio n. 1
0
 private void SetGroupMix()
 {
     if ((MeleeNum > 0 || RangeNum > 0) && (WorkerNum == 0 && WorkerNum > 0))
         groupMix = GroupMix.AllCombat;
     else if ((WorkerNum > 0 || HarvesterNum > 0) && (MeleeNum == 0 && RangeNum == 0))
         groupMix = GroupMix.AllNonCombat;
     else if ((WorkerNum > 0 || HarvesterNum > 0) && (MeleeNum > 0 || RangeNum > 0))
         groupMix = GroupMix.Mixed;
 }
Esempio n. 2
0
 public void SelectedSingleUnit(WorldObject worldObject)
 {
     SelectedObjects[0] = worldObject;
     SelectedObjects[0].SetSelection(true);
     SelectedObjects[0].SetGroupMix(GroupMix.SingleSelection);
     groupMix = GroupMix.SingleSelection;
     SelectedObjects[0].SetOffSet(ResourceManager.PositionOffSets(-1));
 }
Esempio n. 3
0
 public void groupSetMultiples(GroupMix tGroupMix)
 {
     for (int i = 0; i < 12; i++) {
         if (SelectedObjects[i] != null)
             SelectedObjects[i].SetGroupMix(tGroupMix);
     }
 }
Esempio n. 4
0
    public void OrganiseSelection()
    {
        if(SelectedObjects[0].worldObjectType == WorldObjectType.Building ||
           SelectedObjects[0].worldObjectType == WorldObjectType.Environment ||
           SelectedObjects[0].worldObjectType == WorldObjectType.Resource) {
            groupMix = GroupMix.SingleSelection;
            return;
        }

        CountUnitTypesSelected();
        SetGroupMix();
        OrderUnits();
        SetUpUnitsGroupSettings();
    }
Esempio n. 5
0
 public virtual void SetGroupMix(GroupMix groupMix)
 {
     currentGroupMix = groupMix;
 }