Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
364249b192
Commit
8ee04c52b0
@ -57,14 +57,34 @@ public class ShrinkingOuterPointsState implements LaufbauState {
|
|||||||
index++;
|
index++;
|
||||||
|
|
||||||
Point p1 = new Point(point.getX() - 1, point.getY(), point.getZ());
|
Point p1 = new Point(point.getX() - 1, point.getY(), point.getZ());
|
||||||
Point p2 = new Point(point.getX() + 1, point.getY(), point.getZ());
|
if (innerPoints.contains(p1)) {
|
||||||
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))) {
|
|
||||||
shrunkOuterPoints.add(point);
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren