diff --git a/src/main/java/de/tims/fleetstorm/ai/Logic.java b/src/main/java/de/tims/fleetstorm/ai/Logic.java index 9387e67..74bdffe 100644 --- a/src/main/java/de/tims/fleetstorm/ai/Logic.java +++ b/src/main/java/de/tims/fleetstorm/ai/Logic.java @@ -159,6 +159,9 @@ public class Logic { public void setClearedBelow(boolean b) { this.clearedBelow = b; + } + public void setClearedRight(boolean b) { + this.clearedRight = b; } } diff --git a/src/test/java/de/tims/fleetstorm/ai/LogicTest.java b/src/test/java/de/tims/fleetstorm/ai/LogicTest.java index 52eff70..f3272da 100644 --- a/src/test/java/de/tims/fleetstorm/ai/LogicTest.java +++ b/src/test/java/de/tims/fleetstorm/ai/LogicTest.java @@ -220,4 +220,12 @@ class LogicTest { assertEquals(logic.getClearedBelow(), true); } + @Test + void testSetterClearedRight() { + Logic logic = new Logic(); + logic.setClearedRight(true); + + assertEquals(logic.getClearedRight(), true); + } + }