/** sets the bullet's location by taking in two floats */ public void setPosition(float x, float y) { changedPosition.x = x; changedPosition.y = y; if (changedPosition.x > Game.width || changedPosition.y > Game.height) expired = true; super.setFrame((double) x, (double) y, (double) size, (double) size); }
protected void ellipseImpl(float x, float y, float w, float h) { ellipse.setFrame(x, y, w, h); drawShape(ellipse); }