public class Player implements Moveable{ int x,y,width,height; public Player(int x1, int y1, int w, int h){ x = x1; y = y1; width = w; height = h; } public void moveX(int moveX){ this.x += moveX; } public void moveY(int moveY){ this.y += moveY; } }