|
|
@ -25,13 +25,13 @@ public class DefaultFireStrategy implements FireStrategy {
|
|
|
|
int bX = tank.getX() + Tank.WIDTH/2 - Bullet.WIDTH/2;
|
|
|
|
int bX = tank.getX() + Tank.WIDTH/2 - Bullet.WIDTH/2;
|
|
|
|
int bY = tank.getY()+Tank.HEIGHT/2-Bullet.HEIGHT/2;
|
|
|
|
int bY = tank.getY()+Tank.HEIGHT/2-Bullet.HEIGHT/2;
|
|
|
|
// new Bullet(bX, bY, tank.getDir(), tank.getGroup(), tank.getGameModel());
|
|
|
|
// new Bullet(bX, bY, tank.getDir(), tank.getGroup(), tank.getGameModel());
|
|
|
|
// new Bullet(bX, bY, tank.getDir(), tank.getGroup());
|
|
|
|
new Bullet(bX, bY, tank.getDir(), tank.getGroup());
|
|
|
|
GameModel.INSTANCE.add(
|
|
|
|
/*GameModel.INSTANCE.add(
|
|
|
|
new RectDecorator(
|
|
|
|
new RectDecorator(
|
|
|
|
new TailDecorator(
|
|
|
|
new TailDecorator(
|
|
|
|
new Bullet(bX, bY, tank.getDir(), tank.getGroup())
|
|
|
|
new Bullet(bX, bY, tank.getDir(), tank.getGroup())
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
);
|
|
|
|
);*/
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|