From bd37297e1b14f733a2913ed39365b88a12e22a5b Mon Sep 17 00:00:00 2001 From: Max Wenzel Date: Fri, 14 Jan 2022 13:41:49 +0100 Subject: [PATCH] add Setter for ClearedBelow --- src/main/java/de/tims/fleetstorm/ai/Logic.java | 5 +++++ src/test/java/de/tims/fleetstorm/ai/LogicTest.java | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/src/main/java/de/tims/fleetstorm/ai/Logic.java b/src/main/java/de/tims/fleetstorm/ai/Logic.java index 42e9415..9387e67 100644 --- a/src/main/java/de/tims/fleetstorm/ai/Logic.java +++ b/src/main/java/de/tims/fleetstorm/ai/Logic.java @@ -156,4 +156,9 @@ public class Logic { public void setClearedAbove(boolean b) { this.clearedAbove = b; } + + public void setClearedBelow(boolean b) { + this.clearedBelow = b; + + } } diff --git a/src/test/java/de/tims/fleetstorm/ai/LogicTest.java b/src/test/java/de/tims/fleetstorm/ai/LogicTest.java index 1e74ea3..52eff70 100644 --- a/src/test/java/de/tims/fleetstorm/ai/LogicTest.java +++ b/src/test/java/de/tims/fleetstorm/ai/LogicTest.java @@ -212,4 +212,12 @@ class LogicTest { assertEquals(logic.getClearedAbove(), true); } + @Test + void testSetterClearedBelow() { + Logic logic = new Logic(); + logic.setClearedBelow(true); + + assertEquals(logic.getClearedBelow(), true); + } + }