Package model

Examples of model.Partie


        setSkin("Chapeau");
        vue.refresh();
      } else if (arg0.getActionCommand().equals("Fermer la partie")) {
        vue.dispose();
      } else if (arg0.getActionCommand().equals("Nouvelle partie")) {
        Partie modele = new Partie();
        //colonne/nbredecouleur/essai///
        //  modele.configuration(4,5,6);
        modele.configuration();
        JeuGraphique vue = new JeuGraphique();
        vue.setModele(modele);

      }
View Full Code Here


      break;
      //gagnant
    case GAGNANT:
      findepartie();
      if (vue.win() == 1) {
        Partie modele = new Partie();
        modele.configuration();
        JeuGraphique vue = new JeuGraphique();
        vue.setModele(modele);
      } else {
        URL url;
        try {
          url = new URL("http://localhost:8080/SpringMVC_Annotation/jeu.htm?nom="+ConfigEnvironnement.getInstance().getPseudo() +"&findepartie=ok");
          URLConnection urlConnection = url.openConnection();
          BufferedReader in = new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));
          in.close();
        } catch (MalformedURLException e1) {
          // TODO Auto-generated catch block
          e1.printStackTrace();
        } catch (Exception ee) {
          // TODO Auto-generated catch block
         
        }
      }
      break;
      //perdant
    case PERDANT:
      findepartie();
      if (vue.lose() == 1) {
        Partie modele = new Partie();
        modele.configuration();
        JeuGraphique vue = new JeuGraphique();
        vue.setModele(modele);
      } else {
        URL url;
        try {
View Full Code Here

    String source = e.getActionCommand();
   
    if(source == "Jouer"){

      Partie modele = new Partie();
      //colonne/nbredecouleur/essai///
      //  modele.configuration(4,5,6);
      modele.configuration();
   
      JeuGraphique vue = new JeuGraphique();
      vue.setModele(modele);

View Full Code Here

TOP

Related Classes of model.Partie

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.