Browse Source

add Setter for ClearedLeft

Max Wenzel 3 years ago
parent
commit
1eb77214f2
  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

@ -164,4 +164,9 @@ public class Logic {
public void setClearedRight(boolean b) { public void setClearedRight(boolean b) {
this.clearedRight = b; this.clearedRight = b;
} }
public void setClearedLeft(boolean b) {
this.clearedLeft = b;
}
} }

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

@ -228,4 +228,12 @@ class LogicTest {
assertEquals(logic.getClearedRight(), true); assertEquals(logic.getClearedRight(), true);
} }
@Test
void testSetterClearedLeft() {
Logic logic = new Logic();
logic.setClearedLeft(true);
assertEquals(logic.getClearedLeft(), true);
}
} }
Loading…
Cancel
Save