public void setImage(String image) {
        
        int width = (300+this._partie.getParametre().getNbCaseX()+1)/this._partie.getParametre().getNbCaseX();
        int height = (300+this._partie.getParametre().getNbCaseY()+1)/this._partie.getParametre().getNbCaseY();
        this._image = image;
        String path = "stockage/"+this._partie.getParametre().getEpoque().getNom()+"/";
        String extension = "";
        int i = image.lastIndexOf('.');
        if (i > 0) {
            extension = "."+image.substring(i+1);
        }
        image = image.replace(extension, "");
        if(this.getBateau().getOrientation() == 1){
            image = image+"H"+extension;
            if(new File(path+image).exists()){
                ImageIcon ii= new ImageIcon(new ImageIcon(path+image).getImage().getScaledInstance(width, height, Image.SCALE_DEFAULT));
                this.setIcon(ii);
            }
        }else {
            image = image+"V"+extension;
            if(new File(path+image).exists()){
                ImageIcon ii= new ImageIcon(new ImageIcon(path+image).getImage().getScaledInstance(width, height, Image.SCALE_DEFAULT));
                this.setIcon(ii);
            }
        }
        
    }