@@ -0,0 +1,1306 @@
+package game;%0A%0Aimport javax.swing.JPanel;%0A%0Apublic abstract class MovablePanel extends JPanel implements IMovable %7B%0A%0A    protected int directionX;%0A    %0A    protected int directionY;%0A    %0A    protected int x;%0A    %0A    protected int y;%0A    %0A    protected int speed;%0A%0A    /**%0A     * %7B@inheritDoc%7D%0A     */%0A    public void moveLeft() %7B%0A        directionX = -1;%0A        directionY = 0;%0A        performMove();%0A    %7D%0A    %0A    /**%0A     * %7B@inheritDoc%7D%0A     */%0A    public void moveRight() %7B%0A        directionX = 1;%0A        directionY = 0;%0A        performMove();%0A    %7D%0A    %0A    /**%0A     * %7B@inheritDoc%7D%0A     */%0A    public void moveUp() %7B%0A        directionX = 0;%0A        directionY = -1;%0A        performMove();%0A    %7D%0A    %0A    /**%0A     * %7B@inheritDoc%7D%0A     */%0A    public void moveDown() %7B%0A        directionX = 0;%0A        directionY = 1;%0A        performMove();%0A    %7D%0A%0A    /**%0A     * %0A     */%0A    protected void performMove() %7B%0A        x += directionX * speed;%0A        y += directionY * speed;%0A    %7D%0A%0A    /**%0A     * Get the moving speed%0A     *%0A     * @return int number of pixels per move%0A     */%0A    public int getSpeed() %7B%0A        return speed;%0A    %7D%0A%0A    /**%0A     * Set the moving speed%0A     * @param int speed number of pixels per move%0A     */%0A    public void setSpeed(int speed) %7B%0A        this.speed = speed;%0A    %7D%0A%0A%7D

Implement IMovable in MovablePanel