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; }
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)); }
public void groupSetMultiples(GroupMix tGroupMix) { for (int i = 0; i < 12; i++) { if (SelectedObjects[i] != null) SelectedObjects[i].SetGroupMix(tGroupMix); } }
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(); }
public virtual void SetGroupMix(GroupMix groupMix) { currentGroupMix = groupMix; }