SteamWar/BauSystem2.0
Archiviert
12
0

Update Laufbau
Einige Prüfungen sind fehlgeschlagen
SteamWarCI Build failed

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2022-02-05 18:48:40 +01:00
Ursprung 364249b192
Commit 8ee04c52b0

Datei anzeigen

@ -57,14 +57,34 @@ public class ShrinkingOuterPointsState implements LaufbauState {
index++;
Point p1 = new Point(point.getX() - 1, point.getY(), point.getZ());
Point p2 = new Point(point.getX() + 1, point.getY(), point.getZ());
Point p3 = new Point(point.getX(), point.getY() - 1, point.getZ());
Point p4 = new Point(point.getX(), point.getY() + 1, point.getZ());
Point p5 = new Point(point.getX(), point.getY(), point.getZ() - 1);
Point p6 = new Point(point.getX(), point.getY(), point.getZ() + 1);
if (!(!innerPoints.contains(p1) && !innerPoints.contains(p2) && !innerPoints.contains(p3) && !innerPoints.contains(p4) && !innerPoints.contains(p5) && !innerPoints.contains(p6))) {
if (innerPoints.contains(p1)) {
shrunkOuterPoints.add(point);
return;
}
Point p2 = new Point(point.getX() + 1, point.getY(), point.getZ());
if (innerPoints.contains(p2)) {
shrunkOuterPoints.add(point);
return;
}
Point p3 = new Point(point.getX(), point.getY() - 1, point.getZ());
if (innerPoints.contains(p3)) {
shrunkOuterPoints.add(point);
return;
}
Point p4 = new Point(point.getX(), point.getY() + 1, point.getZ());
if (innerPoints.contains(p4)) {
shrunkOuterPoints.add(point);
return;
}
Point p5 = new Point(point.getX(), point.getY(), point.getZ() - 1);
if (innerPoints.contains(p5)) {
shrunkOuterPoints.add(point);
return;
}
Point p6 = new Point(point.getX(), point.getY(), point.getZ() + 1);
if (innerPoints.contains(p6)) {
shrunkOuterPoints.add(point);
return;
}
}
}