Beispiel #1
0
 @Test
 public void testaaUpdatenvaikutus() {
   testbullet = new Bullet(tilemap, Direction.LEFT);
   testbullet.update();
   testbullet.setMovingVector(Direction.NULL);
   testbullet.update();
   assertTrue(testbullet.shouldBeRemoved());
 }
Beispiel #2
0
 @Test
 public void testaaShouldBeRemoved() {
   testbullet = new Bullet(tilemap, Direction.BOTTOMLEFT);
   assertFalse(testbullet.shouldBeRemoved());
 }