@@ -0,0 +1,2273 @@
+package engine;%0A%0Aimport java.awt.image.BufferedImage;%0A%0A/**%0A *  The skin class is to handle every buffered image of a given skin.%0A */%0Apublic class Skin %7B%0A%0A    private BufferedImage%5B%5D left;%0A    private int leftCpt;%0A%0A    private BufferedImage%5B%5D right;%0A    private int rightCpt;%0A%0A    private BufferedImage%5B%5D top;%0A    private int topCpt;%0A%0A    private BufferedImage%5B%5D down;%0A    private int downCpt;%0A    %0A    private BufferedImage%5B%5D onDestruct;%0A    private int onDestructCpt;%0A%0A    private BufferedImage%5B%5D onAppears;%0A    private int onAppearsCpt;%0A%0A    private boolean fix = false;%0A%0A    /**%0A     *  Create a skin with given buffered images arrays.%0A     *  @param left handling the left position%0A     *  @param right handling the right position%0A     *  @param top handling the top position%0A     *  @param down handling the down position%0A     *  @param onDestruct skin on destruction%0A     *  @param onAppears skin on appearance%0A     */%0A    public Skin(BufferedImage%5B%5D left, BufferedImage%5B%5D right, BufferedImage%5B%5D top,%0A                BufferedImage%5B%5D down, BufferedImage%5B%5D onDestruct,%0A                BufferedImage%5B%5D onAppears) %7B%0A        this.left = left;%0A        this.leftCpt = 0;%0A        this.right = right;%0A        this.rightCpt = 0;%0A        this.top = top;%0A        this.topCpt = 0;%0A        this.down = down;%0A        this.downCpt = 0;%0A        this.onDestruct = onDestruct;%0A        this.onDestructCpt = 0;%0A        this.onAppears = onAppears;%0A        this.onAppearsCpt = 0;%0A    %7D%0A%0A    /**%0A     *  Create a skin with given buffered images arrays.%0A     *  The skin is considered as fixed (ie. even if it moves, it doesn't%0A     *  have differences on the current skin).%0A     *  @param fixed fixed skin%0A     *  @param onDestruct skin on destruction%0A     *  @param onAppears skin on appearance%0A     */%0A    public Skin(BufferedImage%5B%5D fixed, BufferedImage%5B%5D onDestruct,%0A                BufferedImage%5B%5D onAppears) %7B%0A        this.left = this.right = this.top = this.down = fixed;%0A        this.leftCpt = this.rightCpt = this.topCpt = this.downCpt = 0;%0A        this.onDestruct = onDestruct;%0A        this.onDestructCpt = 0;%0A        this.onAppears = onAppears;%0A        this.onAppearsCpt = 0;%0A        fix = true;%0A    %7D%0A%0A%0A    /* TODO : add function to get the correct buffered image of a skin */%0A%7D%0A

create a class to handle every kind of skins !