|
1 | 1 | package org.bk.ass;
|
2 | 2 |
|
3 |
| -import static java.lang.Math.max; |
4 |
| -import static java.util.Arrays.asList; |
| 3 | +import bwapi.*; |
| 4 | +import org.bk.ass.info.BWMirrorUnitInfo; |
5 | 5 |
|
6 |
| -import bwapi.ExplosionType; |
7 |
| -import bwapi.Game; |
8 |
| -import bwapi.Player; |
9 |
| -import bwapi.Race; |
10 |
| -import bwapi.TechType; |
11 |
| -import bwapi.Unit; |
12 |
| -import bwapi.UnitSizeType; |
13 |
| -import bwapi.UnitType; |
14 |
| -import bwapi.UpgradeType; |
15 |
| -import bwapi.WeaponType; |
16 | 6 | import java.util.Collection;
|
17 |
| -import java.util.HashSet; |
| 7 | +import java.util.EnumSet; |
18 | 8 | import java.util.Set;
|
19 | 9 | import java.util.function.Consumer;
|
20 |
| -import org.bk.ass.info.BWMirrorUnitInfo; |
| 10 | + |
| 11 | +import static java.lang.Math.max; |
21 | 12 |
|
22 | 13 | /**
|
23 | 14 | * Be aware that for fogged units, BWMirror returns invalid coordinates. You'll have to adjust for
|
|
26 | 17 | public class BWMirrorAgentFactory {
|
27 | 18 |
|
28 | 19 | private static final Set<UnitType> SUICIDERS =
|
29 |
| - new HashSet<>( |
30 |
| - asList( |
| 20 | + EnumSet.of( |
31 | 21 | UnitType.Zerg_Scourge,
|
32 | 22 | UnitType.Zerg_Infested_Terran,
|
33 | 23 | UnitType.Terran_Vulture_Spider_Mine,
|
34 |
| - UnitType.Protoss_Scarab)); |
| 24 | + UnitType.Protoss_Scarab); |
35 | 25 | private static final Set<UnitType> KITERS =
|
36 |
| - new HashSet<>( |
37 |
| - asList( |
| 26 | + EnumSet.of( |
38 | 27 | UnitType.Terran_Marine, UnitType.Terran_Vulture,
|
39 |
| - UnitType.Zerg_Mutalisk, UnitType.Protoss_Dragoon)); |
| 28 | + UnitType.Zerg_Mutalisk, UnitType.Protoss_Dragoon); |
40 | 29 |
|
41 | 30 | private Consumer<Collection<Agent>> bunkerReplacer =
|
42 | 31 | agents -> {
|
|
0 commit comments