// actions affichant l'infobulle voulu public void parler(PanContexte panCtxt, Liaison liaison) { PanelPresentation panelPresentation = new PanelPresentation(this, isBienvenue); if (liaison.getDonneesAff().isJeuFini()) { // on change le tux suivant l'etat de fin de partie if (!liaison.getDonneesAff().tousOrdis() && liaison.getDonneesAff().getGagnant().estOrdi()) { tux = imageDefaite; } else { tux = imageVictoire; } // on affiche la bulle de victoire panCtxt.add( new PanelVictoire( panCtxt.getFenPengouin().getFenetrePrincipale(), liaison, panCtxt.getFenPengouin()), 0); } else if (isCommentJouer) { tux = imageProf; if (isBienvenue) { isAlive = true; panCtxt.add(panelPresentation, 0); isBienvenue = false; } else { panCtxt.add(panelPresentation, 0); } repaint(); } else { tux = imageNormal; } }