Browse Source

add Setter for ClearedRight

Max Wenzel 3 years ago
parent
commit
97a4a0a917
  1. 3
      src/main/java/de/tims/fleetstorm/ai/Logic.java
  2. 8
      src/test/java/de/tims/fleetstorm/ai/LogicTest.java

3
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;
}
}

8
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);
}
}
Loading…
Cancel
Save