Browse Source

add Setter for ClearedBelow

fleetstorm
Max Wenzel 3 years ago
committed by Lorenz Hohmann
parent
commit
6aa384e173
  1. 5
      src/main/java/de/tims/fleetstorm/ai/Logic.java
  2. 8
      src/test/java/de/tims/fleetstorm/ai/LogicTest.java

5
src/main/java/de/tims/fleetstorm/ai/Logic.java

@ -156,4 +156,9 @@ public class Logic {
public void setClearedAbove(boolean b) { public void setClearedAbove(boolean b) {
this.clearedAbove = b; this.clearedAbove = b;
} }
public void setClearedBelow(boolean b) {
this.clearedBelow = b;
}
} }

8
src/test/java/de/tims/fleetstorm/ai/LogicTest.java

@ -212,4 +212,12 @@ class LogicTest {
assertEquals(logic.getClearedAbove(), true); assertEquals(logic.getClearedAbove(), true);
} }
@Test
void testSetterClearedBelow() {
Logic logic = new Logic();
logic.setClearedBelow(true);
assertEquals(logic.getClearedBelow(), true);
}
} }
Loading…
Cancel
Save