public void affiche(Graphics g) {
        if (type == TYPE.HEAL) {
            g.setColor(Color.green);
            String text = "+" + Integer.toString(value);
            int width = g.getFont().getWidth(text);
            int height = g.getFont().getHeight(text);
            if (perso != null)
                g.drawString(text, perso.getX() + (perso.getImg().getWidth() - width) / 2, perso.getY() - height - 2 * varY);
            else
                g.drawString(text, mob.getX() + (mob.getImg().getWidth() - width) / 2, mob.getY() - height - 2 * varY);
            g.setColor(Color.white);
        }
        else if (type == TYPE.DAMAGE) {
            g.setColor(Color.red);
            String text = "-" + Integer.toString(value);
            int width = g.getFont().getWidth(text);
            int height = g.getFont().getHeight(text);
            if (perso != null)
                g.drawString(text, perso.getX() + (perso.getImg().getWidth() - width) / 2, perso.getY() - height - 2 * varY);
            else
                g.drawString(text, mob.getX() + (mob.getImg().getWidth() - width) / 2, mob.getY() - height - 2 * varY);
            g.setColor(Color.white);
        }
        else if (type == TYPE.TRUEDAMAGE) {
            g.setColor(Color.yellow);
            String text = "-" + Integer.toString(value);
            int width = g.getFont().getWidth(text);
            int height = g.getFont().getHeight(text);
            if (perso != null)
                g.drawString(text, perso.getX() + (perso.getImg().getWidth() - width) / 2, perso.getY() - height - 2 * varY);
            else
                g.drawString(text, mob.getX() + (mob.getImg().getWidth() - width) / 2, mob.getY() - height - 2 * varY);
            g.setColor(Color.white);
        }
        if (System.currentTimeMillis() - lastTick > 30) {
            lastTick = System.currentTimeMillis();
            varY++;
        }
    }