mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-11 19:14:11 +00:00
Object scatter test follows the channel-or-shore veto
This commit is contained in:
+3
-3
@@ -106,7 +106,7 @@ public class IrisObjectSurfaceSupportPlacementTest {
|
||||
|
||||
@Test
|
||||
public void automaticSurfaceObjectCannotOverlapRiverWater() {
|
||||
when(complex.hasHydrologySurfaceFluid(0, 0)).thenReturn(true);
|
||||
when(complex.hasHydrologyChannelOrShore(0, 0)).thenReturn(true);
|
||||
SurfacePlacer placer = new SurfacePlacer(engine);
|
||||
|
||||
assertEquals(-1, place(placer, placement(ObjectPlaceMode.CENTER_HEIGHT), -1));
|
||||
@@ -115,7 +115,7 @@ public class IrisObjectSurfaceSupportPlacementTest {
|
||||
|
||||
@Test
|
||||
public void automaticForcePlacementCannotOverlapRiverWater() {
|
||||
when(complex.hasHydrologySurfaceFluid(0, 0)).thenReturn(true);
|
||||
when(complex.hasHydrologyChannelOrShore(0, 0)).thenReturn(true);
|
||||
SurfacePlacer placer = new SurfacePlacer(engine);
|
||||
IrisObjectPlacement placement = placement(ObjectPlaceMode.CENTER_HEIGHT);
|
||||
placement.setForcePlace(true);
|
||||
@@ -126,7 +126,7 @@ public class IrisObjectSurfaceSupportPlacementTest {
|
||||
|
||||
@Test
|
||||
public void explicitObjectPlacementRemainsAllowedInsideRiverWater() {
|
||||
when(complex.hasHydrologySurfaceFluid(0, 0)).thenReturn(true);
|
||||
when(complex.hasHydrologyChannelOrShore(0, 0)).thenReturn(true);
|
||||
SurfacePlacer placer = new SurfacePlacer(engine);
|
||||
|
||||
assertTrue(place(placer, placement(ObjectPlaceMode.CENTER_HEIGHT), SURFACE_Y) >= 0);
|
||||
|
||||
Reference in New Issue
Block a user