public Bullet(double x, double y) { super(new Image("/Shoot.png")); animating = new SpitzLaserWeaponAnimateStrategy(); setViewport(animating.getCurrentView()); setTranslateX(x); // Initial Location setTranslateY(y); // Initial Location }
public void update() { this.setViewport(animating.getCurrentView()); handle(); }
@Override public Rectangle2D getCurrentView() { return animating.getCurrentView(); }
@Override public void handle() { animating.handle(); }