use isBlocked
This commit is contained in:
@@ -173,7 +173,7 @@ public class PowerPlayAnalyzator {
|
||||
public static Stream<IntersectData> getNearExpansions(Stream<Place> starSystems, Collection<Place> centers, double maxDistance){
|
||||
IntersectsMapper mapper = new IntersectsMapper(centers, maxDistance, false, true);
|
||||
return starSystems.filter(new FarDropper(centers, maxDistance))
|
||||
.filter(p -> p.getPowerState() == POWER_STATE.EXPANSION)
|
||||
.filter(p -> p.getPowerState().isExpansion())
|
||||
.map(mapper)
|
||||
.sorted(new DistanceComparator());
|
||||
}
|
||||
|
||||
@@ -18,4 +18,5 @@ public enum POWER_STATE {
|
||||
public boolean isContested(){
|
||||
return this == CONTESTED;
|
||||
}
|
||||
public boolean isBlocked() { return this == BLOCKED;}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user