Package commun

Examples of commun.ExceptionJeu


  }

  public void changementLigne() throws ExceptionJeu
    //partie perdue
    if (partie.getLigne() == partie.getNbreLigne()-1) {
      throw new ExceptionJeu(ExceptionJeu.typeErreur.PERDANT);
    }

    partie.changementLigne();
  }
View Full Code Here


      //
    }

    if (boule == partie.getNbreColonne()) {
     
      throw new ExceptionJeu(ExceptionJeu.typeErreur.GAGNANT);
    }
   
    return boule;
  }
View Full Code Here

  }

  private void setSkin (String skin) throws ExceptionJeu {

    if (getColonne()>0) {
      throw new ExceptionJeu(ExceptionJeu.typeErreur.SKIN);
    }

    ConfigEnvironnement.getInstance().setTheme(skin);
    //    JeuGraphique.setSkin(skin);
  }
View Full Code Here

  }

  public void getJeu(int nbr, int detect) throws ExceptionJeu {

    if (partie.getNbreCouleur()<nbr) {
      throw new ExceptionJeu(ExceptionJeu.typeErreur.NBR_ELEVE);
    }

    System.out.println("NBR " + nbr + "col " + detect);
    partie.getJeu(nbr,detect);
   
View Full Code Here

TOP

Related Classes of commun.ExceptionJeu

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.