public void drawVaisseaux(Graphics g, Image im) {
        g.setColor(Color.green);
        for (int i = 0; i < flotte.size(); i++) {
            vaisseau tmp = flotte.get(i);
            if (tmp.isAlive()) {
                if (tmp.posx < tmp.movPosx - 1 || tmp.posx > tmp.movPosx + 1 || tmp.posy < tmp.movPosy - 1 || tmp.posy > tmp.movPosy + 1) {
                    double a[] = calcDepl2(tmp.posx, tmp.posy, tmp.movPosx, tmp.movPosy);
                    tmp.posx += a[0];
                    tmp.posy += a[1];
                }
                g.drawImage(im, (int) tmp.posx, (int) tmp.posy, null);
                if (tmp.isSelected) {
                    g.drawRect((int) tmp.posx, (int) tmp.posy, tmp.taillex, tmp.tailley);
                }
            }
        }
        g.setColor(Color.black);
    }