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